How to create a hole inside a polygon?

2,388 views
Skip to first unread message

Andres

unread,
Apr 23, 2011, 6:39:41 PM4/23/11
to google-...@googlegroups.com
Like in this feature? Obviously the Force was strong with that mapper. Can we ever aspire to such greatness?

Seriously though, being able to do this would solve a number of problems that I and others have encountered, especially with political features which are inside others (like special districts, chief among them capital districts like the one in the Republic of Panama) and airport tarmac features. There is currently no way as far as I know to create a "donut" shape.

Any ideas?

Andres

unread,
Apr 23, 2011, 6:50:21 PM4/23/11
to google-...@googlegroups.com

Robert Coon

unread,
Apr 23, 2011, 6:51:07 PM4/23/11
to google-...@googlegroups.com
I haven't tried this method, but how about creating a "C" shape with the gap nearly closed, closed or overlapping ends?

Bob

Andres

unread,
Apr 23, 2011, 7:04:59 PM4/23/11
to google-...@googlegroups.com
Yup, that's exactly what I've been doing so far to simulate a donut. Just taking this US release for a test drive and it seems at first impression that mappers for the US had either more advanced tools at their disposal or had templates for some kinds of features. Hopefully those will be made available to us mortal mappers at some point in the future.

nhk

unread,
Apr 24, 2011, 2:11:07 AM4/24/11
to google-...@googlegroups.com

Greetings

A- Create an Island in the Water Polygon.

B- You are back on Earth. Then do whatever you like.

regards

nhk

Andres

unread,
Apr 24, 2011, 9:58:20 PM4/24/11
to google-...@googlegroups.com
Hi nhk,

You're right, that would indeed work if I wanted to create a "hole" in a water polygon. I was wondering though how the hole in the polygon that I linked in my original post was created. You'll note that it's not in water, but rather, it's a building.

Incidentally, has the water/island/landmass issue been resolved yet? I see the issues are still unresolved in the Issue Tracker, just curious.

Cheers,


Andres

zxrayz

unread,
Apr 25, 2011, 12:19:31 AM4/25/11
to google-...@googlegroups.com
Incidentally, has the water/island/landmass issue been resolved yet?  

That was funny. Islands are still sinking into the ocean. Some cities appear to risen from the sea with the new base map; other places are a mess with the new base map.

The base map should not be a water / land mix.  The base should have been simply land, then all water drawn over land (not merged with the base map), and finally islands over water. But...

Nazar khan

unread,
Apr 25, 2011, 1:04:20 AM4/25/11
to google-...@googlegroups.com
zxrayz

You are right. First it was simply a Mass or a Land Mass. Then the water came and created the oceans and so forth.

So you have a point there. It would be more convenient & easy to keep changing/modifying the Map with this bigger picture & concept;  as the Earth's surface continues to undergo changes. Just keep Deleting or Adding Water. 

regards & best wishes

nhk

--
You received this message because you are subscribed to the "General Map Maker" Google group.
 
- To post a public reply in this same thread:
Reply to this e-mail and your note will soon be posted.
 
- To post a note to the group on a *different* General Map Maker topic:
Visit http://goo.gl/GDnr and click on "New topic"
or
E-mail google-...@googlegroups.com
 
- To unsubscribe from this list:
Send email to
google-mapmak...@googlegroups.com
 
- To see additional useful options:
Visit http://goo.gl/GDnr and click on "Membership."
 
Thanks for using Google Map Maker! :-)

zxrayz

unread,
Apr 25, 2011, 2:20:20 AM4/25/11
to google-...@googlegroups.com
How about this shape.... the state (now a county) of Florida has an extra piece of a shape hanging out there... 

hmm... I think somebody at Google has some new toys. Hopefully the toys are tested to be child (user) friendly and then maybe we can play with them too.


Raza

unread,
May 6, 2011, 7:34:51 AM5/6/11
to google-...@googlegroups.com
Hi all, 

The features y'all have mentioned here have all been created internally, using tools that are currently internal only. If you would like to see this tool on Map Maker, please file a feature enhancement on the Issue tracker for the same.

Thanks,
Raza

rkhare

unread,
May 15, 2011, 3:22:56 PM5/15/11
to google-...@googlegroups.com

Andres

unread,
May 15, 2011, 3:32:36 PM5/15/11
to google-...@googlegroups.com
Thanks, starred.

Blake Stephens

unread,
Jul 12, 2011, 5:27:52 PM7/12/11
to google-...@googlegroups.com
I'm glad this has its own report issue. I too would like to be able to create negative spaces inside of buildings/polygons on GMM. I have a building with an open-to-the-air courtyard which I wouldn't want to just plaster over when creating the exterior building outline, since it would undermine the recognizability of the building.

From my (probably limited) understanding of how the Google Maps API and Map Maker's code works (assuming it's v2 and not v3) it may actually be difficult to add a negative space to a polygon in APIv2.

For this multi-poly system to be ideal, a whole interface for managing layers or z-indexes of polygons and their various Negative, Positive, Exclusion, Inclusion/Overlap-Only would need to be built. Presently the system appears to just be additive.

Like the Florida islands example, there is some additional proof of the possibility of linked-but-not-touching polygons as seen in the case of the state of Michigan, with 2 land parts separated by a body of water (which was elegantly demonstrated the concept to me in some example code I can't find now). This issue may have been solved or at least be easier to solve in v3. Here's a statement in the JavaScript Maps API v3 that even specifically refers to donuts and multi-part polygons: http://code.google.com/apis/maps/documentation/javascript/overlays.html#Polygons Second Paragraph:
"Additionally, Polygons may potentially exhibit complex shapes, including discontinuities (multiple polygons defined as one polygon), "donuts" (where polygonal areas appear inside the polygon as "islands") and intersections of one or more polygons. For this reason, a single polygon may specify multiple paths."
That being said, I've never created a multi-polygon in v3 and am not really sure how you'd even specify negative, positive or z-index of the polys. Sorry if this is off topic or is too technical. I couldn't add a comment to the http://code.google.com/p/google-mapmaker/issues/detail?id=1772 page.

Nathan Williams

unread,
Jul 12, 2011, 9:31:31 PM7/12/11
to google-...@googlegroups.com
I do believe that's the Dry Tortugas.  Getting them linked to Monroe County is indeed impressive.  Someone's got a black belt in Google-fu . :)
Reply all
Reply to author
Forward
0 new messages