Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ili2db area validation error - test case #536

Open
michmuel opened this issue Mar 22, 2024 · 1 comment
Open

ili2db area validation error - test case #536

michmuel opened this issue Mar 22, 2024 · 1 comment

Comments

@michmuel
Copy link

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

  • AreaBedingungFlaechen.png: Picture of the geometric setting
  • punkte_4mm.txt: Relevant coordinates
  • ch_test_test_v1_0.ili: Two simple interlis models, one with surface geometry (ch_test_test00_v1_0), one with area geometry (ch_test_test01_v1_0).
  • ch_test_test00_v1_0.xtf, ch_test_test01_v1_0.xtf: interlis files
  • import_4mm.sql: SQL statements for inserting the data into the database

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants