multiple polygons in one placemark KML file

10,626 views
Skip to first unread message

Bob S.

unread,
Dec 4, 2009, 12:04:28 AM12/4/09
to KML Developer Support - Getting Started with KML
Howzit done ? The MultiGeometry example ("How can I make a kml file
with more than one polyg") doesn't seem to work in my viewer... it
paints one polygon but not both...

I want to create a placemark ( or any other single-file entity = ? )
with hundreds of extruded polygons ( squares actually, 200 x 200
meters ) with altitude = a measured parameter... effectively creating
a "bar chart" of that parameter, showing how it varies across a region.

jmatthews

unread,
Dec 5, 2009, 4:27:48 PM12/5/09
to KML Developer Support - Getting Started with KML
You have a lot you want to do. I'll tell you about multigeometry.

<placemark>
<multigeometry>
<polygon>...</polygon>
<polygon>...</polygon>
<polygon>...</polygon>
<point>...</point>
<point>...</point>
</multigeometry>
</placemark>

There. You now have multiple geometry objects associated with a
single placemark via use of the multigeometry tags. In my example
above, you will have 3 polygons and two points associated with the
placemark. I did not fill in information regarding <coordinates> and
<outerBoundaryIs> and the like for these geometries. Refer to the kml
reference guide for that.

If you are still lost, be more precise with what step in the process
is throwing you.

Jason M

unread,
Dec 5, 2009, 9:44:37 PM12/5/09
to KML Developer Support - Getting Started with KML
For a several examples of MultiGeometry see KML Interactive Sampler:
http://kml-samples.googlecode.com/svn/trunk/interactive/index.html

For another example and the details check out the reference:
http://code.google.com/apis/kml/documentation/kmlreference.html#multigeometry

Bob S.

unread,
Dec 6, 2009, 3:41:04 AM12/6/09
to KML Developer Support - Getting Started with KML
Thanks, I've stumbled around a bit now and discovered myself ( by
experiment ) how it works, and your description is accurate. I've got
enough knowledge now to proceed with my immediate needs. I appreciate
the help, the first steps are always the toughest.

Bob S.
> > a "bar chart" of that parameter, showing how it varies across a region.- Hide quoted text -
>
> - Show quoted text -

Adam Roestenburg

unread,
Jan 15, 2013, 8:20:37 PM1/15/13
to kml-support-g...@googlegroups.com
Hi I am still having no luck getting a Placemark to contain 4 separate polygons.

Can you see where I am going wrong with the attached KML.

Cheers

Adam
Multi_geom.kml

Adam Roestenburg

unread,
Jan 15, 2013, 8:22:15 PM1/15/13
to kml-support-g...@googlegroups.com
Oh, capital G

Doh!
Reply all
Reply to author
Forward
0 new messages