question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi,

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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cschwarzcommented, May 9, 2016

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.

0reactions
taviroquaicommented, May 9, 2016

Setting hasZ and hasM to false makes 2D geomety which is what OL3 WKT format currently supports 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found