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 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
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.