Hello,
I connected to a ArcSDE database created a DataStore and a FeatureSource
like this:
ArcSDEDataStoreFactory factory = new ArcSDEDataStoreFactory();
DataStore store = factory.createDataStore(params);
FeatureSource<SimpleFeatureType, SimpleFeature> s = store
.getFeatureSource("GIS.ROADELEMENT");
To get all Features with a defined attribute I use a filter like
follows:
Filter filter = CQL.toFilter("STADTTEIL == 'Hamm'");
So far so good, but now my problem:
For a given x/y coordinate, I need a filter that gives me the Feature
that is closest to this point.
I have no idea how to do that, is this possible with CQL?
The geometry of the Features is always a MULTILINESTRING
Thanks in advance for any help
Stefan
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users