[mapguide-internals] MAP Spatial Filter
Traian Stanev
traian.stanev at autodesk.com
Fri Jun 8 03:59:50 EDT 2007
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.
Traian
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
Cc:
Subject: [mapguide-internals] MAP Spatial Filter
Hi,
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 ?
P.S.
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 (
-180,-90,180,90).
Thanks,
Haris
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
More information about the mapguide-internals
mailing list