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

How do I get the units (meter/feet) from an ISpatialReference object in ArcObjects?

share|improve this question
up vote 10 down vote accepted

Linear units can be obtained from the spatial reference only if it is a projected coordinate system. So, you need to cast the spatial reference to IProjectedCoordinateSystem and access its IProjectedCoordinateSystem.CoordinateUnit property.

But if the spatial reference is a geographic coordinate system, its units are angular and accessed similarly through IGeographicCoordinateSystem.CoordinateUnit.

share|improve this answer
+1 The ILinearUnit.MetersPerUnit property can also save you from writing a lot of code. – Kirk Kuykendall Apr 25 '11 at 13:52
Thanks guys! Problem solved. – user2449 Apr 26 '11 at 15:30

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.