Skip to content

Commit 12b9404

Browse files
committed
exception message fixes
1 parent 50d12c9 commit 12b9404

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/mil/nga/crs/wkt/CRSWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ public void writeDerivedGeoCRS(DerivedCoordinateReferenceSystem crs)
766766
default:
767767
throw new CRSException(
768768
"Invalid Derived Geodetic or Geographic Coordinate Reference System Type: "
769-
+ crs.getType());
769+
+ crs.getBaseType());
770770
}
771771

772772
GeoCoordinateReferenceSystem baseCrs = (GeoCoordinateReferenceSystem) crs
@@ -853,7 +853,7 @@ public void writeDerivedProjectedCRS(DerivedCoordinateReferenceSystem crs)
853853
default:
854854
throw new CRSException(
855855
"Invalid Derived Projected Geodetic or Geographic Coordinate Reference System Type: "
856-
+ crs.getType());
856+
+ projectedCrs.getBaseType());
857857
}
858858

859859
writeSeparator();

0 commit comments

Comments
 (0)