tim robertson ha scritto:
> Hi All,
> 
> I am a novice with GT2, so please go easy...
> 
> Could someone please tell me if there is an RTree index or something I
> can use for keeping an in memory index of Geometries?
> 
> Basically I want something which can quickly give me Geometries whose
> bounding box contains a given point.  Then I would loop over these
> candidate geometries and call a geometry.contains(myPoint) to find the
> real geometries.  Or maybe there is something that can give me the
> definitive list?

RTree is an in memory index all right, and should give you what
you want. Mind that once built the JTS RTree cannot be modified
further.
Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to