Skip to content

Commit

Permalink
Merge branch 'master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
claeis committed Sep 29, 2020
2 parents fdec8ad + 1e193c7 commit ad6acc4
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ allprojects {
targetCompatibility = "1.6"
}

version '1.11.6'+System.getProperty('release','-SNAPSHOT')
version '1.11.7'+System.getProperty('release','-SNAPSHOT')

configurations {
deployerJars
Expand All @@ -22,9 +22,9 @@ configurations {

dependencies {
compile group: 'ch.ehi', name: 'ehibasics', version: '1.3.0'
compile group: 'ch.interlis', name: 'iox-ili', version: '1.21.0'
compile group: 'ch.interlis', name: 'ili2c-tool', version: "5.1.1"
compile group: 'ch.interlis', name: 'ili2c-core', version: "5.1.1"
compile group: 'ch.interlis', name: 'iox-ili', version: '1.21.2'
compile group: 'ch.interlis', name: 'ili2c-tool', version: "5.1.3"
compile group: 'ch.interlis', name: 'ili2c-core', version: "5.1.3"
testCompile group: 'junit', name: 'junit', version: '4.12'
deployerJars "org.apache.maven.wagon:wagon-ftp:3.3.3"
deployerJars "org.apache.maven.wagon:wagon-ssh:3.3.3"
Expand Down
11 changes: 11 additions & 0 deletions docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
LATEST VERSION
-----------------------------

ilivalidator 1.11.7 (2020-09-29)
-----------------------------
- ili2c-5.1.3
- iox-ili-1.21.2
- log --modeldir value as modeldir (#256)
- Overlaying AREA not detected (#263)
- ignore polygon building errors if defaultGeometryTypeValidation="off"
- improve error messages in INI-file parsing (#271)
- wrongly reports duplicate TIDs (#266)
- Attempting to disable geometry validation with no success (#272)

ilivalidator 1.11.6 (2020-05-01)
-----------------------------
- fails to lookup ili24 model if xtf24 transfer file (#239)
Expand Down
6 changes: 4 additions & 2 deletions src/org/interlis2/validator/Validator.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ protected IoxReader createReader(String filename, TransferDescription td,LogEven
ioxReader=new ItfReader(new java.io.File(filename));
}
if(ioxReader instanceof ItfReader2){
((ItfReader2) ioxReader).setAllowItfAreaHoles(skipGeometryErrors);
if(skipGeometryErrors) {
((ItfReader2) ioxReader).setIgnorePolygonBuildingErrors(ItfReader2.POLYGON_BUILDING_ERRORS_OFF);
}
((ItfReader2) ioxReader).setAllowItfAreaHoles(allowItfAreaHoles);
((ItfReader2) ioxReader).setIoxDataPool(pool);
}
Expand Down Expand Up @@ -407,7 +409,7 @@ public static TransferDescription compileIli(String iliVersion,List<String> mode
ilidirs=Validator.SETTING_DEFAULT_ILIDIRS;
}

EhiLogger.logState("ilidirs <"+ilidirs+">");
EhiLogger.logState("modeldir <"+ilidirs+">");
String modeldirs[]=ilidirs.split(";");
HashSet ilifiledirs=new HashSet();
for(int modeli=0;modeli<modeldirs.length;modeli++){
Expand Down
2 changes: 2 additions & 0 deletions test/data/defaultGeometryTypeValidationOff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
["PARAMETER"]
defaultGeometryTypeValidation="off"
7 changes: 7 additions & 0 deletions test/src/org/interlis2/validator/ValidatorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ public void itfAreaOpenFail() {
boolean ret=Validator.runValidation("test/data/Beispiel1d.itf", null);
assertFalse(ret);
}
@Test
public void itfWithValidationConfig_DefaultGeometryTypeValidationOff_Ok() {
Settings settings=new Settings();
settings.setValue(Validator.SETTING_CONFIGFILE, "test/data/defaultGeometryTypeValidationOff.toml");
boolean ret=Validator.runValidation("test/data/Beispiel1d.itf", settings);
assertTrue(ret);
}
@Test
public void xtfOk() {
boolean ret=Validator.runValidation("test/data/Beispiel2a.xtf", null);
Expand Down

0 comments on commit ad6acc4

Please sign in to comment.