[geos-devel] [GEOS] #707: WKBReader does not read geometries with Z, M or ZM outside of Point

GEOS geos-trac at osgeo.org
Fri Sep 26 11:51:07 PDT 2014


#707: WKBReader does not read geometries with Z, M or ZM outside of Point
----------------------+-----------------------------------------------------
 Reporter:  benmorel  |       Owner:  geos-devel@…              
     Type:  defect    |      Status:  new                       
 Priority:  blocker   |   Milestone:  3.4.3                     
Component:  Default   |     Version:  svn-trunk                 
 Severity:  Critical  |    Keywords:  WKBReader                 
----------------------+-----------------------------------------------------
 Strangely, trying to read any Geometry, apart from a Point, with Z, M or
 ZM coordinates from WKB always fails with a message such as:

 "ParseException: Unknown WKB type 234"

 An example of such geometry is the following:

 LINESTRING Z (0 1 2, 1 2 3, 2 3 4)

 Its (hex) WKB representation is:

 01ea030000030000000000000000000000000000000000f03f0000000000000040000000000000f03f00000000000000400000000000000840000000000000004000000000000008400000000000001040

 This WKB is correct, and PostGIS and others handle it properly.

 I will post a pull request on GitHub with failing tests, and put the link
 here.

-- 
Ticket URL: <http://trac.osgeo.org/geos/ticket/707>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list