[fusion-trac] #217: mapserver - Selection.php does not transpose
the cordinates
Fusion
trac_fusion at osgeo.org
Tue Feb 24 16:29:19 EST 2009
#217: mapserver - Selection.php does not transpose the cordinates
--------------------------+-------------------------------------------------
Reporter: pdeschamps | Owner: madair
Type: defect | Status: new
Priority: P2 | Milestone: 2.0
Component: Widgets | Version: 1.1.1
Severity: Major | Keywords:
External_id: | State: New
Browser: All | Os: All
--------------------------+-------------------------------------------------
Steps to reproduce:
Mapfile projection: UTM Zone 18
Layer1 "precipitation" projection: UTM Zone 18
Layer2 "photos" projection: EPSG:4326
Response From Selection.php:
{{{
{"layers":["Precipitation","Photos"],"extents":{"minx":-75.6513365,"miny":45.4872736,"maxx":457068.320299
,"maxy":5044198.48201},"Precipitation":{"propertynames":["STATN_ID","NAME","PROV","LAT","LONG","ALT_M_"
],"propertyvalues":["STATN_ID","NAME","PROV","LAT","LONG","ALT_M_"],"propertytypes":[0,0,0,0,0,0],"metadatanames"
:["dimension","bbox","center","area","length"],"numelements":1,"values":[["7030170.00000","ANGERS","QUE"
,"45.55000","-75.55000","91.00000"]],"metadata":[[0,"457068.320299,5044198.48201,457068.320299,5044198
.48201",0,0,0]]},"Photos":{"propertynames":["ID","LAT","LON","DESCRIPTIO","IMAGE"],"propertyvalues":
["ID","LAT","LON","DESCRIPTIO","IMAGE"],"propertytypes":[0,0,0,0,0],"metadatanames":["dimension","bbox"
,"center","area","length"],"numelements":1,"values":[["3","45.4872736","-75.6513365","GATINEAU","gatineau
.jpg"]],"metadata":[[0,"-75.6513365,45.4872736,-75.6513365,45.4872736",0,0,0]]}}
}}}
You will notice that we have the feature values for each layer in the
layers native projection and not reprojected to the map projection.
This causes havoc in OL. When placing markers on the map. We can not
convert on the client as well as the projection information is not in this
response block.
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/217>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list