[postgis-users] SRID -1?

Carlos Ferrão cferrao at gmail.com
Tue May 30 07:02:20 PDT 2006


Hello list,
I was having some trouble retrieving polygons that cross the dateline
(-180/180) with SRID 4326.
I changed my SRID to -1, assuming that I would get a cartesian
representation of my polygons. Unfortunately, I cannot manage to
retrieve it. What is wrong and how does postGIS interpret the -1 SRID?

Unretrievable Polygon coordinates:
-287.25 -182.13, -287.6 -179.15,-293.95 -185.81, -294.3 186.08,
-294.02 -188.34,-293.67 -188.09, -287.25 -182.13

Statement whose coordinates intersect the polygon but doesn't retrieve any rows:
SELECT * FROM mytable where
Intersects(GeometryFromText('POLYGON((-179.3502 81.8773,-179.3502
1.2996, -105.9206 1.2996, -105.9206 81.8773, -179.3502
81.8773))',-1),mypolygon);

Thanks in advance,
Carlos Ferrao



More information about the postgis-users mailing list