From: Tom H. <tur...@gm...> - 2005-12-15 22:26:50
|
Hi, I need to take a grid coverage and clip it based on a Polygon. My plan was to just loop through the cells of the coverage and check to see if polygon.contains(point) from the cell. If so,, then add the value to a new coverage. I was thinking about constraining this further by only checking the cells in that are contained in the bounding box of the polygon. Any thoughts on if this is the best way to approach the problem or any suggestions on how to do this? I can brute force it, but I wanted to see if anyone had better suggestions. Thanks, Tom |