[mapserver-users] RE: Projection and mapquery

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Thu Jan 28 13:54:11 EST 2010

What version are we talking?

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Morten Sickel
Sent: Thursday, January 28, 2010 12:37 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Projection and mapquery

I presently have a set up in which I plot some measurements on some background maps. Things work fine, but I want to add the possibility to query the measurement data set by clicking on a measurement. The measurements have coordinates in lat lon and I only manage to query those data if I plot the entire map in the same projection. I have tried to reproject the query point using code like

	$geopoint->project($mapproj, $layerproj); 
	// projects the point from the projection of the map to the projection of layer

 the debug function just dumps the data and it is clear that the point is correctly reprojected, but anyhow 
$map->queryByPoint($geopoint, MS_MULTIPLE, 1); 
never gives anything if the mobil-layer and the map are in different projections. 

Are there any ways to overcome this? As I am mostly working on maps from 60 deg north and upwards, geographical projection is not the projection of choise and I would prefer not having to reproject the measurement data.

mapserver-users mailing list
mapserver-users at lists.osgeo.org

More information about the mapserver-users mailing list