Skip to content

Commit

Permalink
geopackage-core 6.6.4, print dgiwg error count, catch wkt parsing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bosborn committed Sep 21, 2023
1 parent ed05aa3 commit 3e00418
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<dependency>
<groupId>mil.nga.geopackage</groupId>
<artifactId>geopackage-core</artifactId>
<version>6.6.3</version>
<version>6.6.4</version>
<exclusions>
<exclusion>
<groupId>com.j256.ormlite</groupId>
Expand Down
16 changes: 13 additions & 3 deletions src/main/java/mil/nga/geopackage/io/SQLExec.java
Original file line number Diff line number Diff line change
Expand Up @@ -2238,13 +2238,20 @@ private static void projectionInfo(GeoPackage database, String tableName) {
String prettyDefinition = WKTUtils.pretty(definition);
System.out.println();
System.out.println(prettyDefinition);
} catch (IOException e) {
} catch (Exception e) {
System.out.println("Failed to pretty print definition: "
+ definition);
e.printStackTrace();
}
try {
System.out.println();
System.out.println(
"PROJ: " + ProjParser.paramsText(definition));
} catch (IOException e) {
} catch (Exception e) {
System.out.println(
"Failed to parse PROJ params from definition: "
+ definition);
e.printStackTrace();
}
}

Expand Down Expand Up @@ -3049,11 +3056,14 @@ private static void dgiwg(GeoPackage database) {
DGIWGValidationErrors errors = DGIWGValidate.validate(database);
System.out.println();
if (errors.hasErrors()) {
System.out.println("DGIWG Validation Errors:");
System.out.println(
"DGIWG Validation Errors (" + errors.numErrors() + "):");
System.out.println();
System.out.println(errors);
} else {
System.out.println("Passed DGIWG validation");
}
System.out.println();

}

Expand Down

0 comments on commit 3e00418

Please sign in to comment.