Skip to content

eraymann/hinterlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INTERLIS Tools Collection

Purpose

This module contains tools

  • for checking interlis1 and interlis2 files by calling REST service.
  • manipulate interlis1 files such as removing unused topics and tables

Install

pip install <path_to_your_wheel.whl>

That's it.

Version History

Version Release Notes
0.0.6 code adapted to new rest service
0.0.5 detox either with 'keep' or 'remove' parameter
0.0.4 read/write files with utf-8 encoding
0.0.3 server alias as optional parameter
0.0.2 detox submodule added
0.0.1 initial version

Examples

Check Interlis 1 file

# import module
from hinterlist import check

# create instance of Checker with default server paths
mychecker = check.Checker(server="gugus.dada.admin.ch:6443")

# submit synchroneous job, i.e. wait until check finished
result = mychecker.run_check(
    xtf=r"P:\ath\to\interlis1.itf",
    ili=r"P:\ath\to\model.ili",
    mode=check.Mode.SYNC,
    config=check.Config.ESRI
)

# Print results
print(result.jobid)
print(result.logfile)
print(result.success)
print(result.valid)

Get Structure of Interlis 1 file

TODO

About

Launch Interlis Check Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages