opengisch / QgisModelBaker

Create QGIS projects from database schemas or Interlis models
https://opengisch.github.io/QgisModelBaker/
GNU Lesser General Public License v3.0
54 stars 18 forks source link

Replace internal Interlis parser with library #415

Open m-kuhn opened 4 years ago

m-kuhn commented 4 years ago

We currently have an internal Interlis parser which is used for example to list available models within an interlis file. This regex based parser works good enough, but if possible, it would be nice to replace it with a dedicated library.

Options:

  1. ili2c java edition
  2. ili2c C/C++ edition
  3. custom Python library

Options 1 or 2 are preferable. Both of them need a wrapper layer to be available from within Python. Option 2 is not yet available and the deployment needs to be checked, possibly through pypi.

edigonzales commented 4 years ago

Welche Funktionalität von ili2c-java braucht es alles? Auch die ilirepository-Funktionalitäten? https://github.com/claeis/ili2c/tree/master/src/main/java/ch/interlis/ilirepository

Braucht es zu guter Letzt nicht auch ili2db ohne "Java"?

m-kuhn commented 4 years ago
edigonzales commented 4 years ago

Can you point me to the code to your "internal Interlis parser"?

m-kuhn commented 4 years ago

The "internal interlis parser" is here.

https://github.com/opengisch/QgisModelBaker/blob/master/QgisModelBaker/libili2db/ilicache.py

Note: it's not "mine", it's open source ;)

m-kuhn commented 4 years ago

For reference, we already have an ili2db through api issue