Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
v3.cesa.co.za /
vendor /
creof /
wkt-parser /
Delete
Unzip
Name
Size
Permission
Date
Action
lib
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
tests
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
.codeclimate.yml
132
B
-rwxrwxr-x
2015-11-18 21:20
.gitignore
22
B
-rwxrwxr-x
2015-11-18 21:20
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
.travis.yml
289
B
-rwxrwxr-x
2015-11-18 21:20
CHANGELOG.md
436
B
-rwxrwxr-x
2015-11-18 21:20
CONTRIBUTING.md
424
B
-rwxrwxr-x
2015-11-18 21:20
LICENSE
1.04
KB
-rwxrwxr-x
2015-11-18 21:20
README.md
1.02
KB
-rwxrwxr-x
2015-11-18 21:20
TODO.md
0
B
-rwxrwxr-x
2015-11-18 21:20
composer.json
740
B
-rwxrwxr-x
2015-11-18 21:20
phpunit.xml.dist
423
B
-rwxrwxr-x
2015-11-18 21:20
Save
Rename
# creof/wkt-parser [](https://codeclimate.com/github/creof/wkt-parser) [](https://codeclimate.com/github/creof/wkt-parser/coverage) [](https://travis-ci.org/creof/wkt-parser) Lexer and parser library for WKT/EWKT spatial object strings. ## Usage Pass value to be parsed in the constructor, then call parse() on the created object. ```php $input = 'POLYGON((0 0,10 0,10 10,0 10,0 0))'; $parser = new Parser($input); $value = $parser->parse(); ``` ## Return The parser will return an array with the keys ```srid```, ```type```, and ```value```. - ```srid``` is the SRID if EWKT was passed in the constructor, null otherwise. - ```type``` is the spatial object type. - ```value``` will contain an array with 2 numeric values, or nested arrays containing these depending on the spatial object type.