#721: WKBReader fails reading little-endian MULTIPOINT M EWKB ----------------------+----------------------------------------------------- Reporter: benmorel | Owner: geos-devel@… Type: defect | Status: new Priority: blocker | Milestone: 3.4.3 Component: Default | Version: svn-trunk Severity: Critical | Keywords: ----------------------+----------------------------------------------------- This seemed related to my previous ticket #707 at first glance, but I double-checked this is EWKB and not ISO WKB, so it should be handled properly by libGEOS.
Test code (executed with PHP bindings): $reader = new GeosWKBReader(); $reader->readHEX('0104000040020000000101000040000000000000f03f000000000000004000000000000008400101000040000000000000004000000000000008400000000000001040'); The reader fails with "ParseException: Unknown WKB type 0". Although this is valid EWKB, as confirmed by PostGIS: SELECT ST_AsText(ST_GeomFromEWKB(DECODE('0104000040020000000101000040000000000000f03f000000000000004000000000000008400101000040000000000000004000000000000008400000000000001040', 'HEX'))); > MULTIPOINT M (1 2 3,2 3 4) -- Ticket URL: <http://trac.osgeo.org/geos/ticket/721> GEOS <http://trac.osgeo.org/geos> GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS). _______________________________________________ geos-devel mailing list geos-devel@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/geos-devel