[mapguide-internals] MAP Spatial Filter

Haris Kurtagic haris at sl-king.com
Fri Jun 8 11:53:06 EDT 2007

Thanks Traian.

I have another question regarding MG threading.

If Map is stylizing layers and while one layer has been stylized ( reading from fdo reader ) I hit "Refresh" on Map.
I see new FDO connection is created and stylization of Map start's from begining.

What I don't see, how the first Map stylization ends (the one which got interupted) ?
For example I can't see that "Close" on interupted reader is ever called.


-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Traian Stanev
Sent: 8. junij 2007 10:00
To: MapGuide Internals Mail List; MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MAP Spatial Filter

Hi Haris,
MapGuide is supposed to transform the query region from the map's coord sys to the layer's coord sys before doing the FDO query. The relevant code is at MgStylizationUtil::ExecuteFeatureQuery
in StylizationUtil.cpp. Not sure why it is not working for you, but that code was changed recently so it is possible it could be a bug. 
P.S. I am not surprised Map is doing a query for an area larger than the limits of LatLon since it does not validate the query rectangle against the limits of the coordinate system (at least as far as I know about that) -- it simply uses 2D math to compute the currently visible region, so if you zoom out on the world map, the query region will be larger than -180,-90,180,90.

	-----Original Message----- 
	From: mapguide-internals-bounces at lists.osgeo.org on behalf of Haris Kurtagic 
	Sent: Fri 6/8/2007 3:27 AM 
	To: MapGuide Internals Mail List 
	Subject: [mapguide-internals] MAP Spatial Filter

	I have a question what is way that MG will set spatial filter when in
	Map there are layers with different coordinate system's.
	I have in test Map layer with Lat/Lon and layers with projected cs.
	MG when querying is sending same extents of Map for both layers geodetic
	and projected.
	So when querying against Lat/lon layer MG is setting spatial filter to
	extend in projected coordinates.
	I suppose this is not how it should work ?
	Another issue I had is that if for example in Map There is just one
	layer with geoditc cs, Map will set filter bigger than (
	mapguide-internals mailing list
	mapguide-internals at lists.osgeo.org

More information about the mapguide-internals mailing list