[Mapserver-users] WMS error EPSG:32633

Homme Zwaagstra hrz at geodata.soton.ac.uk
Wed Mar 17 05:32:53 EST 2004


Hi,

The only thing I can think of is that the line:

"WMS_SRS" "EPSG:4326 EPSG:32633"

in your WEB object is not necessary; the WMS Server HOWTO at
http://mapserver.gis.umn.edu/doc40/wms-server-howto.html#mapfile
states that the WMS_SRS is "optional since the layers inherit the map's
SRS value"

If this doesn't help then it would be worth submitting a bug report.

Kind regards,

Homme Zwaagstra

On Tue, Mar 16, 2004 at 02:58:37PM +0100, snow 77 wrote:
> 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/
> 
> _______________________________________________
> 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