[mapguide-users] SetSpatialFilter and MgFeatureSpatialOperations
problem with search
Maciej Skorczewski
maciej.skorczewski at procad.pl
Tue Jan 27 02:08:21 EST 2009
Hi Kenneth
thx for answers.
i thing about another solution , how about use postgis spatial function?...
plan is:
1. get all coordinates of parcels/region from mapguide setspatial results
2. use postgis spatial function (question is: can i use sparial function
without insert to database?, can i make in only as sql query?)
3. so when small parcel is IN bigger region then true/false.
i try this, i give you solution/answer.
macieksk
> I have seen cases where the first record of the datasource is returned
> no matter what the query is.
> You are likely seeing a different problem, but now you know :).
>
> In the pretty picture you have drawn, the lower part shows the parcel
> (with the number three), which
> clearly touches the yellow parcel. AFAIK, there is no direct spatial
> operation that allows you to
> select only the grey one. You can however calculate the area of which
> the two polygons overlap,
> and filter out the yellow, based on overlapped area. You can choose to
> discard polygon with
> a very smal overlapping area, or only select the one with the largest
> overlapping area.
>
> Is there a problem with only selecting parcels that intersect the actual
> point the user clicked on?
>
> If you are actually using the point, you are likely using the OGR
> provider, and having this problem:
> http://trac.osgeo.org/fdo/ticket/343
>
> Regards, Kenneth Skovhede, GEOGRAF A/S
More information about the mapguide-users
mailing list