[postgis-devel] RC5 - astext and multi
Carl Anderson
carl.anderson at vadose.org
Sun Mar 27 16:56:10 PST 2005
Looks like this crept back in
two issues that I see here
SRID added to sub parts, astext returning invalid WKT
multi( POINT ) converts coordinates to the wrong numeric value
2 -> 2 e-320 or 2 -> 0
C.
I'll keep poking
-----------------------------------------------------------------------------------------------
gis=# select asewkt((setsrid('POINT(2 2)'::geometry,4326)));
asewkt
----------------------
SRID=4326;POINT(2 2)
(1 row)
gis=# select astext(multi(setsrid('POINT(2 2)'::geometry,4326)));
astext
---------------------------------------------------------
MULTIPOINT(2.13732798390923e-320 5.30498947741318e-315)
(1 row)
gis=# select astext (multi(setsrid('LINESTRING(0 0,1 1)'::geometry,4326)));
astext
--------------------------------------
MULTILINESTRING(SRID=4326;(0 0,1 1))
(1 row)
gis=# select astext(multi(setsrid('POLYGON((0 0,1 1,1 0,0
0))'::geometry,4326)));
astext
---------------------------------------------
MULTIPOLYGON(SRID=4326;((0 0,1 1,1 0,0 0)))
(1 row)
More information about the postgis-devel
mailing list