AnsweredAssumed Answered

How to convert a graphic to geometry ?

Question asked by ManelKeddar on Jun 8, 2017
Latest reply on Jun 8, 2017 by mnielsen-esristaff

Hello ,

I have a feature table with geometry index  and in my Sceneview i have a 3D cone i've created it using the following code 

 

   var location = new MapPoint(-4.04, 70, 1000, SpatialReferences.Wgs84);

var coneSymbole = new SimpleMarkerSceneSymbol
{
Style=SimpleMarkerSceneSymbolStyle.Cone,
Color=Colors.Yellow,
Height=3000,
Width=1000,
Depth=3000,

AnchorPosition=SceneSymbolAnchorPosition.Bottom

};

var coneGraphic = new Graphic(location , coneSymbole);

 MySceneView.GraphicsOverlays[0].Graphics.Add(coneGraphic);

and i need to add this graphics to my feature table as a geometry so i need to create a newfeature that contains the 3D geometry of the cone but i don't know how to convert graphics to geometry cause createFeature(attributes, geometry) have a geometry parameter and not a graphics parameter any on can tell me what to do , thanks advanced 

Outcomes