http://github.com/anselm/angel/blob/master/app/models/world_boundaries.rb
That above link is an implementation of a point in polygon test that I
just threw into my project - doesn't rely on postgis other than to
store the polygons - apologies if not super elegant but should solve
your issue,
Sent from my iPhone
On Sep 16, 2009, at 7:23 AM, "William J. Spat" <[email protected]> wrote:
I wanted to pick the collective, dissociated geowanking brain on a
problem
that has me stumped.
I need to set a region in Open Layers using Open Street Map, and then
automatically determine if a given point falls within that region.
I've come up with a simple formula that works with a quadrilateral-
shaped
boxed region, but some possible regions are more complicated than
that,
having more than four sides and not being exactly box shaped.
Does anyone have any suggestions for a more robust formula that
would work
for a greater range of region shapes? Or a clever work-around?
Thanks in advance,
Will
_______________________________________________
Geowanking mailing list
[email protected]
http://geowanking.org/mailman/listinfo/geowanking_geowanking.org
_______________________________________________
Geowanking mailing list
[email protected]
http://geowanking.org/mailman/listinfo/geowanking_geowanking.org