toWkt output
See original GitHub issueHi,
This is the geometry object:
Point {
srid: undefined,
hasZ: true,
hasM: false,
x: 389671.879,
y: 263437.527,
z: 0
}
When I call .toWkt() it outputs:
POINT Z (389671.879 263437.527 0)
It shouldn’t be POINT(389671.879 263437.527 0) ?
Thanks 😃
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Convert SHP to WKT Online - MyGeodata Cloud
Discover fast and easy to use online conversion and transformation tool to convert SHP to WKT format - widely used in ESRI ArcGIS,...
Read more >geo_wkt_writer::ToWkt - Rust - Docs.rs
Returns a WKT representation of a geo-types Geometry. There is no Rect or Triangle WKT text type, so both of those will be...
Read more >ST_AsText - PostGIS
Returns the OGC Well-Known Text (WKT) representation of the geometry/geography. The optional maxdecimaldigits argument may be used to limit the number of digits ......
Read more >Convert shapefile to WKT using ArcPy - GIS Stack Exchange
Firstly, "SHAPEFILE@WKT" should be "SHAPE@WKT" . Secondly, your WKT will be in exactly the same coordinate system as your shapefile.
Read more >Map Info to wkt conversion - Designer - Alteryx Community
is it possible to convert the Map Info file a to wkt(well-known text) ... Alteryx can help to do it inside current spatial...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems like Open Layers 3 only supports 2D geometries.
Depending on how you get your geometries, you can either use ST_Force2D if you use PostGIS or set hasZ to false on your geometry objects.
Setting hasZ and hasM to false makes 2D geomety which is what OL3 WKT format currently supports 😃