[OSM-dev] Osmosis Replication Statistics

Martijn van Oosterhout kleptog at gmail.com
Wed Aug 29 08:41:37 BST 2007


On 8/29/07, Brett Henderson <brett at bretth.com> wrote:
> There is already a --bounding-box filter task.  Presumably you're
> looking for something more accurate than a square ...  If so, I have
> some research to do, I don't know how to figure out if a point fits
> inside a shape.  Hopefully the algorithm isn't too difficult.

Don't write code you don't need to, see:
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Polygon.html
You can create a Polygon object and then call the contains() function.

Have a nice day,
-- 
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/




More information about the dev mailing list