Skip to content

Commit fd01045

Browse files
committed
crs compound requirement check
1 parent f0d5f41 commit fd01045

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/mil/nga/geopackage/dgiwg/DGIWGValidate.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,15 @@ public static DGIWGValidationErrors validateFeatureTable(
693693
DGIWGRequirement.VALIDITY_DATA_VALIDITY,
694694
primaryKeys(geometryColumns)));
695695
}
696+
if (crs.isType(CRSType.COMPOUND)) {
697+
errors.add(new DGIWGValidationError(
698+
SpatialReferenceSystem.TABLE_NAME,
699+
CrsWktExtension.DEFINITION_COLUMN_NAME,
700+
srs.getProjectionDefinition(),
701+
"Compound CRS not allowed for Geometry Columns value of prohibited (0)",
702+
DGIWGRequirement.CRS_COMPOUND,
703+
primaryKey(srs)));
704+
}
696705
} else if (z == 1) {
697706
if (!crs.isDataType(DataType.FEATURES_3D)) {
698707
errors.add(new DGIWGValidationError(

0 commit comments

Comments
 (0)