[mapserver-users] Maps are not generating

Dushi dushan888 at gmail.com
Sat Jul 9 21:57:22 PDT 2011


Hi, I'm a newbee for GIS. I have a posgis database on my working
environment(template_postgis). i need to retrieve "the_geom" column from  a
table named "cmb_roads_rda". following is my map file (test.map).
*MAP
  IMAGETYPE      PNG
  EXTENT         -97.238976 41.619778 -82.122902 49.385620
  SIZE           900 900
  IMAGECOLOR     255 255 143


  LAYER
    NAME         cmb_roads_rda
    CONNECTIONTYPE postgis
    NAME "cmb_roads_rda"
    CONNECTION "user=postgres password=817888 port=5432
dbname=template_postgis host=localhost"
    DATA         "the_geom from cmb_roads_rda"
    STATUS       ON
    DEBUG         ON
    TYPE         LINE

    CLASS
      NAME       "cmb_roads_rda"

      STYLE
        COLOR        232 232 266
        OUTLINECOLOR 32 32 33

      END
    END
END


END

*I call this map file by calling the following link -->
http://localhost/cgi-bin/mapserv?map=/var/www/db/test.map&layer=states&mode=map
but it *only generates a yellow color layer on *the browser and not
displaying "the_geom" data.
I'm using mapserver 5.6.6 with apashe2 webserver on linux mint.
Please be kind to help on this issue. Thank you so much.

*
*--
Me on Web
http://dushan888.wordpress.com
http://www.twitter.com/Dushi
http://identi.ca/dushi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110710/745251e8/attachment.htm>


More information about the MapServer-users mailing list