Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

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

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

Your Answer


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.