WKB representation of empty 3D Point is 2-dimensional
See original GitHub issueI am a bit lost in the previous discussions we had about this topic of WKB and empty points (and GEOS version dependencies … etc), but noticed the following difference between Shapely and PyGEOS while running the Shapely tests (in the shapely-2.0 branch) with the latest pygeos:
>>> pygeos.to_wkb(pygeos.from_wkt("POINT Z EMPTY"), hex=True)
'0101000000000000000000F87F000000000000F87F'
This in contrast to Shapely (using the same GEOS 3.9.1 version):
>>> from shapely import wkt
>>> wkt.loads("POINT Z EMPTY").wkb_hex
'0101000080000000000000F87F000000000000F87F000000000000F87F'
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Well-known text representation of geometry - Wikipedia
Empty geometries that contain no coordinates can be specified by using the symbol EMPTY after the type name.
Read more >#1005 (Writing POINT EMPTY in WKB) – GEOS - OSGeo Trac
turns out the core model of GEOS/JTS can't even represent a "GEOMETRYCOLLECTION Z EMPTY" of any type. There's nowhere for the dimensionality to...
Read more >WKT: What is the reasoning behind the concept of a POINT ...
That all pretty much makes sense: a "LINESTRING EMPTY" is a LINESTRING type with 0 vertices. Same with a MULTIPOINT, POLYGON, etc. But...
Read more >Well-known text - GIS Wiki | The GIS Encyclopedia
Well-known text (WKT) is a text markup language for representing vector geometry objects on a map, spatial reference systems of spatial ...
Read more >Chapter 8. PostGIS Reference
ST_GeogFromWKB — Creates a geography instance from a Well-Known Binary geometry representation (WKB) or extended Well Known Binary (EWKB).
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
I created a ticket at GEOS: https://trac.osgeo.org/geos/ticket/1129
Yes, but at least that’s the same in Shapely, so that might also be a limitation/bug of GEOS: