Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 am having this issue with using Geomtry that is returned from a WCF service. As part of the service, I have added a service reference for the map service that I am using in this project. I am trying to return 'ESRI.ArcGIS.Client.Geometry.Geometry as a return type but when I assign the Geomtry to my result, it comes back with this error: 'Geometry' is an ambiguous reference between 'GIS.Services.Data.BoundaryMapService.Geometry' and 'ESRI.ArcGIS.Client.Geometry.Geometry'. I am not sure what needs to be done to resolve this issue. Appreciate any feedback. Thanks Jay

ESRI.ArcGIS.Client.Geometry.Geometry resultGeometry = null;

                for (int i = 0; i < attributes.Values.Count(); i++)
                    if (attributes.Values[i] is PolygonN)
                        PolygonN featureExtent = attributes.Values[i] as PolygonN;
                        resultGeometry = featureExtent; // Error here...

share|improve this question

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.