WKT2GEOSTRUCT
WKT2GEOSTRUCT converts geometries in the Well-known text markup language to geostructs (or mapstructs). The structs it creates are the type used/created by functions from the Mapping Toolbox.
GEOSTRUCT2WKT as the name would suggest, does the inverse of WKT2GEOSTRUCT. It generates WKT representations of geostructs (or mapstructs).
Well-known text: http://en.wikipedia.org/wiki/Well-known_text
Supported shape types
---------------------
WKT2GEOSTRUCT only supports a subset of the WKT format.Only 2 dimensional geometries without a linear reference are supported.
The supported types are:
* Point
* LineString
* Polygon
* MultiPoint
* MultiLineString
* MultiPolygon (not supported by geostruct2wkt atm)
Cite As
Alexander Layton (2025). WKT2GEOSTRUCT (https://github.com/awlayton/wkt2geostruct), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Mapping Toolbox > Coordinate Reference Systems >
- Radar > Mapping Toolbox > Coordinate Reference Systems >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
1.4.0.0 | Added geostruct2wkt function. |
|
|
1.3.0.0 | Added `MultiLineString` and `MultiPolygon` support. |
|
|
1.2.0.0 | Fix a regex that Octave didn't like. |
|
|
1.1.0.0 | Made Polygons with interior rings work.
|
||
1.0.0.0 |