I'm trying to select feature from a gui app.  The code I'm using is this:

envelope = new Envelope();
envelope.expandToInclude(-87.54, 42.14); //This is actually generated
from the gui
Expression bbox = ff.createBBoxExpression(envelope);
String geomName = featureSource.getSchema().getDefaultGeometry()
        .getName();
Expression geometry = ff.createAttributeExpression(geomName);
GeometryFilter bboxFilter = ff
                .createGeometryFilter(AbstractFilter.GEOMETRY_BBOX);
bboxFilter.addLeftGeometry(geometry);
bboxFilter.addRightGeometry(bbox);
return featureSource.getFeatures(bboxFilter);


but I get a rather arbitrary set of polygons back instead.  am I doing
something incorrectly?

Thanks,
Tom


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to