Hi Mark

Interesting question - the polygon case is a bit like the recent
discussion of concave hulls, only in reverse :)

For line strings maybe the LengthIndexedLine class is your friend.

For polygons, an easy hack would be to get the bounding box, generate
points on a regular grid within that and then test for point in
polygon, though you might need some elaboration of that if you're
dealing with long, narrow polygons.

Michael
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel

Reply via email to