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 have a globe document that includes several layers that are draped on the globe's surface, but no elevation layers. If I open the document in ArcGlobe (desktop) and add an elevation layer, the appearanceof the draped layers changes - they are draped on the elevation. However, if I use this same globe document in a Visual Studio application and add the elevation layer programmatically, the appearance of the draped layers doesn't change. Does anyone know why this is the case?

Here's the code I'm using to add the elevation layer programmatically:

IGlobe theGlobe = axGlobeControl1.Globe; IRasterLayer mergedElevLyr = new RasterLayerClass(); mergedElevLyr.CreateFromFilePath("D:\@ALPACAS\AlpacasCT\experimental\3D\data\MergedElev_111711.img"); mergedElevLyr.Visible = false; theGlobe.AddLayerType((ILayer)mergedElevLyr, esriGlobeLayerType.esriGlobeLayerTypeElevation, true); theGlobe.GlobeDisplay.RefreshViewers();

Any thoughts will be appreciated!

Mark

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.