[mapserver-users] Reprojection issues
Trond Michelsen
trondmm-mapserver+2017 at crusaders.no
Tue May 23 07:42:57 PDT 2017
Hi.
I'm using mapserver 7.0.0, and I have a problem with reprojecting from
EPSG:32632 (UTM32N) to EPSG:32661 (Polar Stereographic - North
Pole). The extent of my layer (in epsg:32632) is
299995,6490195,409805,6600005. If I set wms_bbox_extended to "true" in
the mapfile, mapserver reports this bbox for epsg:32661:
2330270,-1566870,2464140,-1433000
My layer definition is:
LAYER
NAME "test"
TYPE POLYGON
STATUS ON
EXTENT 299995 6490195 409805 6600005
PROJECTION
"init=epsg:32632"
END
FEATURE
POINTS
299995 6600005
299995 6490195
409805 6490195
409805 6600005
299995 6600005
END
END
CLASS
STYLE
OUTLINECOLOR 255 0 0
END
END
METADATA
"wms_title" "Test"
"wms_srs" "EPSG:4326 CRS:84 EPSG:32661 EPSG:32632"
END
END
If I request a big area in epsg:32661, like
-3000000,-3000000,7000000,7000000, I get a blank image, and the
debuglog says:
Skipping layer (test) because LAYER.EXTENT does not intersect MAP.EXTENT
Test url:
http://nbswms.met.no/cgi-bin/mapserv?map=/home/ubuntu/mapfiles/simpletest.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&FORMAT=image/png&SRS=EPSG:32661&BBOX=-3000000,-3000000,7000000,7000000&WIDTH=640&HEIGHT=640&LAYERS=test
But, it does intersect, and according to the bounding box mapserver
calculated, mapserver should know that it does, too. If I shift the
view 2000km, to -1000000,-3000000,9000000,7000000, mapserver happily
renders the layer.
Test url:
http://nbswms.met.no/cgi-bin/mapserv?map=/home/ubuntu/mapfiles/simpletest.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&FORMAT=image/png&SRS=EPSG:32661&BBOX=-1000000,-3000000,9000000,7000000&WIDTH=640&HEIGHT=640&LAYERS=test
Any idea what's going on, and what I can do to fix it?
--
Trond Michelsen
More information about the MapServer-users
mailing list