Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create boxes by simply extruding polygons but with special "floors". I've been able to find several existing solutions for the extrusion problem. The remaining problem is that the "floor" of my boxes do not fit with the altitude modes provided by the KML reference. I want to be able to create floors with specifications like "max (100m absolute, 50m above ground)".

I don't see any simple solutions. I could do a grid sampling to get ground altitude (I'm already doing this for something else) and generate only absolute altitude. But I'm afraid that I will have problems in areas with too many mountains if the sampling is too sparse, or I will have a huge KML file if the sampling is too dense.

share|improve this question
Can you sample based on the specific case? Mountains=detailed sampling; flat-lands = less detailed – djq Feb 16 '11 at 18:20

So combine

Absolute Extruded Polygons


Relative Extruded Polygons

and Relative Polygons

(copy and paste the code into each other and set the altitude by the offset of the lower building polygon)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.