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 geometries returning from the ArcGIS Server as a featureset from a gp service to the silverlight client. In debug mode in VS 2010 I see the geometries coming back to the client and I am adding them to a graphics layer that I have defined in the xaml.

I figure I am doing something wrong but I can't figure out how to debug why the graphics aren't showing up in the map.

foreach (Graphic graphic in gpLayer.FeatureSet.Features) {

                    ESRI.ArcGIS.Client.Geometry.MapPoint point = graphic.Geometry as ESRI.ArcGIS.Client.Geometry.MapPoint;
                    point.SpatialReference = MyMap.SpatialReference;
                    {
                        graphic.Symbol = LayoutRoot.Resources["NewPointSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol;
                        graphic.Geometry = point;
                    };

                    //MapPoint geographicPoint = _mercator.ToGeographic(point) as MapPoint;
                    _graphicsLayer.Graphics.Add(graphic);

Could this be a scope issue or a projection issue?

share|improve this question

1 Answer 1

It was a projection issue. Zoomed to the full extent and saw the big green dots off the coast of Africa!

share|improve this answer
    
The process of asking the question is most helpful. Thanks for the forum.. SE! –  Justin Mar 10 '12 at 14:06

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.