[OpenLayers-Trac] [OpenLayers] #3190: BBOXSR in ArcGIS93Rest layer is wrong for non-lon/lat projections

OpenLayers trac-20090302 at openlayers.org
Fri Mar 25 13:32:18 EDT 2011


#3190: BBOXSR in ArcGIS93Rest layer is wrong for non-lon/lat projections
-------------------------------+--------------------------------------------
 Reporter:  jdege              |       Owner:              
     Type:  feature            |      Status:  new         
 Priority:  major              |   Milestone:  2.11 Release
Component:  Layer.ArcGISCache  |     Version:  2.10        
 Keywords:                     |       State:              
-------------------------------+--------------------------------------------
 I was playing with the arcgis93test.html example.

 I changed maxExtent, maxResolution, and setCenter to draw a map of
 Minnesota only, and everything worked fine.  I then changed the projection
 from EPSG:4326 to EPSG:26991 – and got a solid black map.

 Examining the URLs of the tiles, it became apparent what the problem is:

 http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/export?
 LAYERS=show%3A0%2C2&
 FORMAT=png&
 BBOX=-91.6%2C43.2%2C-88.4%2C46.4&
 SIZE=256%2C256&
 F=image&
 BBOXSR=26991&
 IMAGESR=26991

 The BBOX is being passed in lon/lat, but the BBOXSR is set to 26991, which
 is a meters projection.

 If I set BBOXSR=4326 and leave IMAGESR unchanged, the tile draws
 correctly.

 The problem is in getURL() - bounds.toBBOX() returns coordinates in
 Lon/Lat, but newParams always sets BBOXSR to the same srid as IMAGESR, and
 that is simply not right.

 Either the bounding box being passed has to be transformed to the
 projection of the layer, or BBOXSR has to always be passed a lon/lat srid.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3190>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list