Skip to content

Commit

Permalink
dev(validator-plugin-cnig): active GeometryInDocumentValidator only f…
Browse files Browse the repository at this point in the history
…or secteur_cc or zone_urba
  • Loading branch information
cboucheIGN committed Nov 8, 2023
1 parent 0913684 commit 2b69ef1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ public void beforeValidate(Context context, Document document) throws Exception
FeatureType featureType = tableModel.getFeatureType();
GeometryType geometryType = featureType.getDefaultGeometry();
if (geometryType == null) {
log.info(MARKER, "Skip validator. No geomety for featureType {}", featureType.getName());
log.info(MARKER, "Skip {}. No geomety for this featureType.", featureType.getName());
continue;
}
String name = featureType.getName();
if (name.equals("SECTEUR_CC") || name.equals("ZONE_URBA")) {
log.info(MARKER, "Skip {}. Only for SECTEUR_CC or ZONE_URBA.", featureType.getName());
continue;
}
log.info(
Expand Down

0 comments on commit 2b69ef1

Please sign in to comment.