From: Rob Hranac <robhranac@vf...> - 2002-04-30 15:13:08
You make several excellent points here. On this specific one:
> >Then, "extent.containsFeature(Feature)" can be implemented as:
> > extent.intersects(feature.getExtent());
As James noted, we are moving toward replacing extents with filters for
this (see my committed code in filter) and they cannot be implemented
this way as a general case, because they also filter for non-spatial
attributes. I should note that, for this specific case (just checking
bbox overlaps), this is a great approach, but I can't see any way this
could be generalized. In short, filters need to understand features,
which is a horrible, but unavoidable, thing. Check out
org.geotools.filters for a little more documentation on this, just don't
expect the code to actually do anything! :)
I will address some of your points on features in a follow up email.
Get latest updates about Open Source Projects, Conferences and News.