claeis / ili2db

interlis import/export to relational databases
30 stars 30 forks source link

ili2db area validation error - test case #536

Open michmuel opened 8 months ago

michmuel commented 8 months ago

We have some interlis data whose objects have "area" as geometry type. Validation with ili2db often fails for this data. In order to understand the reason for the failure I constructed a test case:

test-data.zip

succeeds (surface):

java  -jar /data/ili2pg-5.1.0/ili2pg-5.1.0.jar --import \
            --dbhost db \
            --dbport 5432 \
            --dbdatabase gretl \
            --dbusr gretl \
            --dbpwd gretl \
            --dbschema testtopic00_a \
            --models ch_test_test00_v1_0 \
            --modeldir '/data/models;%ITF_DIR;http://models.interlis.ch' \
            /data/output/ch_test_test00_v1_0.xtf

fails (area):

java  -jar /data/ili2pg-5.1.0/ili2pg-5.1.0.jar --import \
            --dbhost db \
            --dbport 5432 \
            --dbdatabase gretl \
            --dbusr gretl \
            --dbpwd gretl \
            --dbschema testtopic01_a \
            --models ch_test_test01_v1_0 \
            --modeldir '/data/models;%ITF_DIR;http://models.interlis.ch' \
            /data/output/ch_test_test01_v1_0.xtf

I hope the test setting is correct. Otherwise, please let me know.

I would like to know if the geometry of the test case is, in principle, valid in interlis and, if so, why the test case is not working.

edigonzales commented 8 months ago

Vielelicht kann das @olivergrimm mit der neuen (noch nicht gemergten?) AREA-Validierung in ilivalidator prüfen?