[postgis-devel] PostGIS 1.4 SVN geometry parser hints

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Wed Oct 15 13:22:23 PDT 2008


Paul Ramsey wrote:

> Why does this error start with "...?gs"?
> 
> postgis2=# select 'MULTIPOLYGON(((0 0, 0 0, 0 0,0 0),(0 0, 0 0, 0 0,0
> 0),(0 0, 0 0, 0 0,0 0),(0 0, 0 0, 0 0,0 0),(0 0, 0 , 0 0,0
> 0)))'::geometry;
> ERROR:  parse error - invalid geometry
> HINT:  "...?gs, 0 0,0 0),(0 0, 0 0, 0 0,0 0),(0 0, 0 ," <-- parse
> error at position 103 within geometry
> 
> P.

Hmmm that looks like an incorrect pointer, perhaps somewhere in the 
pointer arithmetic :(  Unfortunately I can't re-create that here - which 
platform are you working on? Does stepping through pg_parser_errhint() 
in lwgeom_pg.c yield anything obvious?


ATB,

Mark.

-- 
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063



More information about the postgis-devel mailing list