[Mapserver-users] WMS mapfile snippet/WMS test server
Norbert Thieme
norbert.thieme at ilmenau.baw.de
Thu Apr 29 04:39:27 PDT 2004
Nicolas Boretos schrieb:
>
>>>
>>> Do I need anything in my WEB object?
>>>
>>> Could someone supply a valid snippet that tests the WMS servers
>>> posted at postgis site?
>>>
>>> regards,
>>>
>>> nicolas
>>>
>>>
>>> _______________________________________________
>>> Mapserver-users mailing list
>>> Mapserver-users at lists.gis.umn.edu
>>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>
>>>
>>
>> I think you need at least the imagepath in the web object because the
>> mapserver creates a temporary image in this directory and deletes it.
>
>
> The above is snipped out of my mapfile. The other layers work, meaning I
> have the image path in my web object
> web
> footer "kaz_png_footer.html"
> header "kaz_png_header.html"
> imagepath "c:/web/maich.gr/kaz_png/tmp/"
> imageurl "/kaz_png/tmp/"
> template "kaz_png.html"
> end
>
>
>
>>
>> Do you have a projection set for your map? You need to have that. If
>> you have it how does it look like?
>
>
> No, I dont have a projection set, but my shape file stuff works
> I just blindly tried adding
>
> PROJECTION
> "proj=utm"
> "ellps=GRS80"
> "zone=15"
> "north"
> "no_defs"
> END
>
> and my shape stuff still works...
>
> I dont know...
>
> regards,
> nicolas
>
>
>
The .shp should work. The thing with .shp is that if you don't use any
projection the mapserver handles the data as it is of the same type and
you have no problem.
But with WMS you must have a projection defined for the map and I think
the best way is to set a standard epsg code. If your defintion works
with your it's also OK. But you must provide this. Even if you have only
one WMS layer the mapserver won't take it for the map.
Regards,
Norbert
More information about the MapServer-users
mailing list