#721 closed defect (duplicate)
WKBReader fails reading little-endian MULTIPOINT M EWKB
Reported by: | benmorel | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | 3.6.1 |
Component: | Default | Version: | main |
Severity: | Critical | Keywords: | |
Cc: |
Description
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)
Duplicate of #460