[mapserver-users] Trouble connecting to PostGIS

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon Feb 13 13:50:35 PST 2012


I'd use Brent's advice of always specifying a projection when loading 
the data into PG.  Then make sure your DATA statement uses that SRID:

   DATA "the_geom from test using SRID=4326 using unique id"

   or

   DATA "the_geom from test using SRID=-1 using unique id"

I try to document my usual steps at 
http://www.mapserver.org/input/vector/postgis.html

-jeff




-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




More information about the mapserver-users mailing list