[mapguide-users] How to highlight an area on a map?

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Tue Dec 9 07:41:16 EST 2008


1) Not sure, but perhaps one of these are what you want:
http://edndoc.esri.com/arcobjects/9.2/java/api/arcobjects/com/esri/arcgis/geometry/Polygon.html#touches(com.esri.arcgis.geometry.IGeometry)
Look at the touches, intersects, disjoint, etc. Most of these methods 
should be supported through FDO.

2) You can use the SetSpatialFilter method on the query object. An 
alternative would be to
extract the WKT from the object and use the GEOMFROMTEXT method in the 
query like:
"ID > 100 AND GeometryColumn Intersects GEOMFROMTEXT('POINT(1,1)')"

3) Option 1 would be to create a new featuresource like in the Buffer 
code in the viewer.
Then simply add all the features to that one.
Option two would be to create a filter like the one from item (2) and 
apply it to a pre-made layer
that shows all the features.

Regards, Kenneth Skovhede, GEOGRAF A/S



jamesdudden skrev:
> Hi,
>
> This i am finiding is a bit more complex than it sounds and i really don't
> know where to start so any help or advice would be appreciated.
>
> I need to create a complex query and highlight the results as a new layer.
> My map has a layer of fields, a layer of aonb's (areas of natural beauty)
> and a layer of power sources. These all layer on top of each other so some
> fields will be in the aonb's, some outside and some half in, half out etc.
>
> Query - I need to find all fields that are not within an aonb - including
> fields that are half in, half out - and are 100 meters from a power source.
>
> 1st problem - I can create a query (taken from dotnetsamples) to find all
> the fields outside an aonb but not ones that cross the aonb.
>
> 2nd problem - I can create a buffer around my powersource but i don't know
> how to combine this with my query.
>
> 3rd problem - I would like the query to return the results as a new
> digitised layer that only creates the part of the field that is outside of
> the aonb.
>
> Is any of this possible? - please any help would be gladly received
>
> Regards
> James
>
> -----
> Straightforward solutions to take care of your business
> http://www.software-matters.co.uk Software Matters 
>   


More information about the mapguide-users mailing list