[Mapserver-users] Missing Something
Hal Mueller
hal at mobilegeographics.com
Fri May 21 12:39:43 PDT 2004
Your first "END" line is in the wrong place, I think. The LAYER
definition is outside the MAP definition.
Instead of saying
MAP
(more stuff)
END
LAYER
(more stuff)
END
you should have
MAP
(more stuff)
LAYER
(more stuff)
END
END
I suggest you also have a look at
http://www.mobilegeographics.com/mapserver/hello.phtml
which is a working demo that doesn't require any shapefiles or projection.
Hal
>Why doesn't this produce anything, I am a newbie so overlooking something is
>very possible. All I get is a 640 480 box the color I have chosen below. The
>sewera files are all in the data path .dbf .prj .shp .shx. I used ogrinfo -al
>to get the extents from the shx file.
>
>this is the url I am using.
>http://localhost/cgi-bin/mapserv40?map=/srv/www/htdocs/mapserver/test.map&mode=map
>
>
>test.map contents ---
>MAP
>
> IMAGETYPE PNG
> STATUS ON
> EXTENT 382487.530826 833318.888530 497485.329577 1017509.008264
> SIZE 640 480
> SHAPEPATH "data"
> IMAGECOLOR 238 238 238
>
>END
>
> LAYER
> NAME sewera
> DATA sewera
> STATUS DEFAULT
> TYPE POLYGON
>
> END
>
>Any ideas would be appreciated...
>Thanks,
>Eric
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list