Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

1 Answer

So combine

Absolute Extruded Polygons http://kml-samples.googlecode.com/svn/trunk/interactive/index.html#./Polygons/Polygons.Absolute_Extruded.kml

and

Relative Extruded Polygons

http://kml-samples.googlecode.com/svn/trunk/interactive/index.html#./Polygons/Polygons.Relative_Extruded.kml

and Relative Polygons http://kml-samples.googlecode.com/svn/trunk/interactive/index.html#./Polygons/Polygons.Relative.kml

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

share|improve this answer
add comment

Your Answer

 
discard

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.