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'm trying to add some data to an ArcGlobe; however, it's not showing up and I'm wondering what the issue is.

I am doing the following

IGeometry geometry;
Ipolygon polygon = myPolygon;
polygon.SpatialReference=  SetSpatialReference(); 

geometry = polygon as IGeometry;
IZaware zAware = geometry as IZaware;
zaware.Zaware = false;

IElement element;
IPolygonElement polygonElement = new PolygonElementClass();
element = polygonElement as IElement;
element.Geometry = polygon;

IFillShapeElement fillShapeElement = polygonElement as IFillShapeElement;

ISimpleFillSymbol sfs = new SimpleFillSymbolClass();
sfs.Style = esriSimpleFillStyle.esriSFSSolid;
sfs.Color = myColor;

fillShapeElement.Symbol = sfs;
((IGraphicsContainer)myGlobeGraphicsLayer).AddElement((IElement)fillShapeElement , 0);

Anyone see any major issues?

EDIT 1: Made sure to use code-sample tool.

share|improve this question
    
I'm assuming this is an issue with the Element part...and that the SimpleFillSymbol is OK? –  PSU_Kardi Apr 7 '11 at 16:31
1  
Have you tried refreshing your display/active view after adding the element? –  AndOne Apr 13 '11 at 9:12
add comment

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.