Re: [OpenMap Users] One Poly inside another

From: Don Dietrick <>
Date: Fri, 4 Mar 2005 10:09:49 -0500

Hi Mark,

Are you looking for an algorithm to see if one polygon is completely
inside another? You could iterate over the points of one to see if
they are all within the other. If you get a single false, test the
other back in the first. You could use/modify the Geo/intersection
class, or use the java.awt.Shape methods for a projected polygon.

- Don

On Mar 1, 2005, at 9:52 AM, Potter, Mark A (UK Rochester) wrote:

> Hello All,
> Does anyone know if there is a built-in method that can determine if
> one polygon is inside another?
> I'm using com.bbn.openmap.geo.Intersection to see if two polygons
> intersect, but I could also use a simple and efficient way to see if
> one is inside the other.
> Any ideas?
> Thanks,
> Mark.
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************

Don Dietrick,
BBN Technologies, Cambridge, MA

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Mar 04 2005 - 10:10:47 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT