[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-devel
Subject:    Re: [postgis-devel] RC5  -  astext and multi
From:       strk () refractions ! net
Date:       2005-03-28 9:48:35
Message-ID: 20050328094835.GB56612 () freek ! keybit ! net
[Download RAW message or body]

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@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic