[postgis-devel] MultiPoint weirdness

Markus Schaber schabios at logi-track.com
Mon Jan 17 08:45:38 PST 2005


Hi,

Another weirdness:

lwgeom=# select asewkt(geomunion('POINT(10 10 10)','POINT(20 20 20)'));
            asewkt
-------------------------------
 MULTIPOINT(10 10 10,20 20 20)
(1 Zeile)

lwgeom=# select isvalid(geomunion('POINT(10 10 10)','POINT(20 20 20)'));
 isvalid
---------
 t
(1 Zeile)

lwgeom=# select geometryFromText('MULTIPOINT(10 10 10,20 20 20)',-1);
ERROR:  parse error - invalid geometry

lwgeom=# select geometryFromText(asewkt(geomunion('POINT(10 10
10)','POINT(20 20 20)')),-1);
ERROR:  parse error - invalid geometry

So the lwgeom parser does not accept a valid geometry it created itsself.

For comparison:

The old 0.8 version creates a strange result, but accepts the result again:
hwgeom=# select geomunion('POINT(10 10 10)','POINT(20 20 20)');
                     geomunion
---------------------------------------------------
 SRID=-1;MULTIPOINT(10 10 1.7e-308,20 20 1.7e-308)
(1 Zeile)

hwgeom=# select 'SRID=-1;MULTIPOINT(10 10 1.7e-308,20 20
1.7e-308)'::geometry;
                     geometry
---------------------------------------------------
 SRID=-1;MULTIPOINT(10 10 1.7e-308,20 20 1.7e-308)
(1 Zeile)

[Sorry, but I don't currently have a 0.9 installation working to compare
against, but I'm working on it :-)]

Thanks,
markus



More information about the postgis-devel mailing list