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 attempting to write a method in C# that will accept as input, an ESRI.ArcGIS.Geometry.ISpatialReference object and convert it to an ESRI.ArcGIS.Client.Geometry.SpatialReference object. I need this for converting an IPoint to a MapPoint. Are there any online resources for this? Thanks!

share|improve this question
add comment

1 Answer

Use the factory code from the ISpatialReference object to create a new spatial ref. If your client geometry obj was named myGeom and input spatial ref was named inputSR then it would look something like this:

myGeom.SpatialReference = new ESRI.ArcGIS.Client.Geometry.SpatialReference(inputSR.FactoryCode);
share|improve this answer
add comment

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.