[Mapserver-users] WMS error EPSG:32633
snow 77
snow77899 at hotmail.com
Tue Mar 16 05:58:37 PST 2004
Hi,
Can anyone tell me what I do wrong?
I'd like to use WMS with the following http-request:
http://localhost/cgi-bin/mapserv.exe?map=C:/inetpub/wwwroot/demo/test2.map&WMTVER=1.0.0&REQUEST=map&BBOX=393042,5147575,583042,5313825&WIDTH=400&HEIGHT=350&LAYERS=aut6__________a7&FORMAT=image/png&SRS=EPSG:32633
When I do that, I get an error from mapserv.exe (read error on the memory).
If I use EPSG:4326 everything works fine but my image (map) is quite
distorted. The shapefiles are epsg:4326 and the output should be epsg:32633.
May I have an error in my mapfile?
MAP
NAME "test"
STATUS ON
#EXTENT 13.563817 46.2695106622074 16.166907714098 48.1749556
EXTENT 389334.69 5124995.01 586750.69 5336404.45
SIZE 400 350
SHAPEPATH "../../../Inetpub/wwwroot/demo/data"
FONTSET "../../../Inetpub/wwwroot/demo/fonts/fonts.list"
IMAGECOLOR 255 255 255
#UNITS DD
UNITS METERS
RESOLUTION 72
PROJECTION
"init=epsg:32633"
END
WEB
TEMPLATE demo.html
MINSCALE 1000
MAXSCALE 1550000
IMAGEPATH "set in demo_init.html"
IMAGEURL "set in demo_init.html"
METADATA
"WMS_TITLE" "JRS Mapserver Demo"
"WMS_ABSTRACT" "This is the JRS MapServer demonstration application for
Styria located in central Austria."
"WMS_ACCESSCONSTRAINTS" none
"WMS_ONLINERESOURCE"
"http://localhost/cgi-bin/mapserv.exe?map=c:/inetpub/wwwroot/demo/test2.map&"
"WMS_SRS" "EPSG:4326 EPSG:32633"
END
END
LAYER
NAME "aut6__________a7"
STATUS ON
PROJECTION
"init=epsg:4326"
END
DATA "../../../../Inetpub/wwwroot/demo/data/aut6__________a7"
LABELITEM "NAME"
CLASS
TEMPLATE void
COLOR 255 255 204
OUTLINECOLOR 200 200 200
LABEL
COLOR 132 31 31
COLOR 16 125 65
TYPE TRUETYPE
FONT arial-bold
SIZE 10
ANTIALIAS TRUE
POSITION AUTO
PARTIALS FALSE
MINDISTANCE 300
BUFFER 4
END # end of label
END
TYPE POLYGON
METADATA
"WMS_TITLE" "aut6__________a7"
"WMS_SRS" "EPSG:4326"
END
END
END
I think I have read all documentations due to this problem, but I can't find
a solution. I have used the same mapfile with the template "demo.html" and
it works perfect. But mapserver crashes when I try to use it as WMS.
Can anyone help me?
Many thanks in advance!
Sonja
_________________________________________________________________
Die MSN Suche - Kategorien helfen Ihnen dabei, präzise Ergebnisse zu
erhalten. http://search.msn.at/
More information about the MapServer-users
mailing list