[postgis-devel] RC5 - astext and multi
strk at refractions.net
strk at refractions.net
Mon Mar 28 01:48:35 PST 2005
Thanks Carl.
Fix is in CVS (togheter with an eariler return when it would be a no-op).
--strk;
On Sun, Mar 27, 2005 at 07:56:10PM -0500, Carl Anderson wrote:
> 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)
>
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
More information about the postgis-devel
mailing list