Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#721 closed defect (duplicate)

WKBReader fails reading little-endian MULTIPOINT M EWKB

Reported by: benmorel Owned by: geos-devel@…
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)

Change History (2)

comment:1 by strk, 9 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #460

comment:2 by strk, 8 years ago

Milestone: 3.4.33.6.1

Ticket retargeted after milestone deleted

Note: See TracTickets for help on using tickets.