mapserver with postgis problems

Sami Jan sami.jan at GMAIL.COM
Sun Mar 4 11:50:21 EST 2007


sorry again :)

turns out the problem was that the projection in the WMS server settings and
the PROJECTION label need to be the same, so if my wms server settings says:

# WMS server settings
    METADATA
      'wms_title'           'postgis_dot_hospitals'
      'wms_onlineresource'  'http://my.host.com/cgi-bin/mapserv?map=wms.map&'
      'wms_srs'             'EPSG:4326'
    END

the PROJECTION variable needs to say this:

PROJECTION
    'init=epsg:4326'
END

otherwise neither shape or postgis data will be rendered - hope this helps
some other web/gis n00b like me :)



More information about the mapserver-users mailing list