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 have the user select a coordinate system with the Spatial Reference Dialog. Is there a simple way to determine if the resulting spatial reference is a Projected or Geographic CS? I would of thought that this would be an attribute of the spatialReference, but it does not seem to be.

Using ArcObjects .NET SDK (C#).

As always, thanks in advance!

share|improve this question
up vote 11 down vote accepted

You can check the object type like so:

ISpatialReference ref = ...; // This is your spatial reference
if (ref is IGeographicCoordinateSystem) {
} else if (ref is IProjectedCoordinateSystem) {
    // Projected
} else {
    // Unknown coordinate system
share|improve this answer
Yes, thanks! I just sketched that out after my post as well. Really thought something like this would be built into the Spatial Reference object, but I guess not. – rgwozdz Sep 1 '11 at 15:21
No problem. Don't forget to accept the answer if it answered your question. – Sasa Ivetic Sep 1 '11 at 15:24
@rgwozdz - If Sasa answered your question, can you please mark his post as answered? – Jakub Sep 1 '11 at 16:09

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.