Hi list,
I'm using geotool version 8.3 to use fes 2.0 filter for some geometry. My
filter object works as expected and contains the correct information [
aixm:timeSlice//aixm:ElevatedPoint dwithin LINESTRING (51.5 -0.5, 38.9
-77), distance: 50.0 ]. Then I create a simple feature that has a Point
using SimpleFeatureTypeBuilder & SimpleFeatureBuilder as followed:
Object geometry = new GeometryFactory().createPoint(new
Coordinate(38.9, -77))
SimpleFeatureTypeBuilder builderType = new
SimpleFeatureTypeBuilder();
builderType.setName("Simple");
builderType .setNamespaceURI("http://www.some.namespace");
builderType .add(FEATURES_DEFAULT_GEOMETRY, Object.class);
builderType .setDefaultGeometry(FEATURES_DEFAULT_GEOMETRY);
SimpleFeatureBuilder builder = new
SimpleFeatureBuilder(builderType.buildFeatureType());
builder.add(geometry);
SimpleFeature simpleFeature = builder.buildFeature("featureName");
match = filter.evaluate(simpleFeature);
I would expect match to be true since the point is on the linestring, but
it returns false. What have I missed?
Many thanks,
...-H
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users