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 have thought that this would be an attribute of the spatialReference, but it does not seem to be.

1 Answer 1


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.