Opened 15 years ago

Closed 15 years ago

#217 closed defect (fixed)

mapserver - Selection.php does not transpose the cordinates

Reported by: pdeschamps Owned by: madair
Priority: P2 Milestone: 2.0
Component: Widgets Version: 1.1.1
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

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.

Change History (1)

comment:1 by pdeschamps, 15 years ago

Resolution: fixed
Status: newclosed

(In [1802]) closes #217: Added logic to recalc bbox if layer is in a different projection then the map

Note: See TracTickets for help on using tickets.