Hello
I have about 5000 LINESTRINGS, in a List. Now I want to create a function
“filterWithRectangle” that returns all the LINESTRINGS that are inside a
given rectangle:
List<LineString> filterWithRectangle(List<LineString> allLineStrings,
Coordinate leftTop, Coordinate rightBottom)
It is easys to implement this function by iterating over all Coordinates of
all LineStrings and compare with the given rectangle.
But this function will be called very often with the same List of
“allLineStrings” and with different Coordinates for the rectangle.
Therefore I wonder if it is possible to create an index for the LineStrings
for better performance. I read that shapefiles can do something like this,
but as far as I understood this needs access to a hard disc. I'm lokking
for a solution that works in memory.
Any ideas?
Thanks for any suggestions!
Stefan
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users