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'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
Have you tried refreshing your display/active view after adding the element? – AndOne Apr 13 '11 at 9:12

Your Answer


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

Browse other questions tagged or ask your own question.