Hi Dushi, in the mapfile the layer has *NAME "cmb_roads_rda",* but you call it from cgi like layer=states. You should rename your layer to "states" or change the layers parameter in url
regards, michael On Sun, Jul 10, 2011 at 7:57 AM, Dushi <[email protected]> wrote: > 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 > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
