[geos-devel] Question

strk strk at keybit.net
Tue Mar 31 11:42:16 EDT 2009


On Tue, Mar 31, 2009 at 11:24:50PM +0800, LiN YongHeng wrote:
> hello everyone, Please look these code:
> GEOSGeom g1, g2;
> g1 = GEOSGeomFromWKT("SRID=5001;POINT(44 31)");
> g1srid = GEOSGetSRID(g1);
> g2 = GEOSGeomFromWKT(GEOSGeomToWKT(g1));
> g2srid= GEOSGetSRID(g2);
> g2srid not have the same value with g1srid, which g1srid value is 5001 and
> g2srid is -1. My GEOS version is "3.1.0". I don't know why? Can anyone give
> me answer 

The WKT standard doesn't include a SRID specification,
so GEOSGeomToWKT won't get it. Still GEOSGeomFromWKT
accepts that.

--strk; 

 Free GIS & Flash consultant/developer      ()  ASCII Ribbon Campaign
 http://foo.keybit.net/~strk/services.html  /\  Keep it simple! 


More information about the geos-devel mailing list