[udig-devel] Layer Attribute Query
Jody Garnett
jgarnett at refractions.net
Wed Aug 15 21:22:32 PDT 2007
There is a page with filter examples here:
- http://docs.codehaus.org/display/GEOTDOC/Filter+Examples
It is for a newer version of GeoTools - but the approach is still good.
FidFilter is able to accept a Set of ID Strings.
Jody
Jesse Eichar wrote:
> Hi,
>
> You'll want to look at the code snippets I sent in a previous email
> and the Geotools Filters and JTS operations.
>
> Here's a tip:
>
> ff = FilterFactoryFinder.createFilterFactory()
> idFilter1 = ff.createFidFilter( id1 );
>
> idFilter2 = ff.createFidFilter( id2 );
>
> or = ff.createLogicFilter( FilterType.LOGIC_OR )
>
> or.addFilter( idFilter1 );
> or.addFilter( idFilter2 );
>
> Something like that.
>
> Jesse
>
> On Aug 14, 2007, at 8:21 AM, Andy Cox wrote:
>
>> Hello,
>>
>>
>>
>> I have a polygon layer which has about 10 polygons. I want to get
>> access to two specific polygons based on attribute query (e.g. their
>> IDs). Then I want to perform a Boolean spatial intersection to find
>> out they intersect. Does anyone have any pointers to where I can find
>> some info on this?
>>
>>
>>
>> Any help greatly appreciated.
>>
>> Thanks
>> Andy
>>
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
More information about the udig-devel
mailing list