[mapserver-users] Reprojection issues

David Shorthouse DShorthouse at mus-nature.ca
Tue May 23 08:21:19 PDT 2017


Trond -

Reprojecting to polar can be finicky at best. See https://github.com/mapserver/mapserver/issues/5348. The commit here might solve your particular problem: https://github.com/mapserver/mapserver/pull/5360/commits/bbfa86661216c370fa5e4860ca4d4a9efcbc3a7e

David




On 2017-05-23, 10:42 AM, "mapserver-users on behalf of Trond Michelsen" <mapserver-users-bounces at lists.osgeo.org on behalf of trondmm-mapserver+2017 at crusaders.no> wrote:

>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
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>https://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list