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

document ili2c options #81

Open
beistehen opened this issue Nov 11, 2022 · 6 comments
Open

document ili2c options #81

beistehen opened this issue Nov 11, 2022 · 6 comments

Comments

@beistehen
Copy link
Contributor

A lot of options are missing in the doc, e.g.

  • --check-repo-ilis
  • --list* (like --listModels, --listAllModels, --listData)
  • --o* (like --o2, --oXSD, --oILIGML2)
  • --trafo*
  • ...
@sjib
Copy link

sjib commented Jul 18, 2023

Hier ein Beispiel für --check-repo-ilis
java -jar ili2c.jar --check-repo-ilis https://vsa.ch/models --modeldir https://vsa.ch/models

Oder mit Output des logs (auf der Windwos Shell):
java -jar ili2c.jar --check-repo-ilis https://vsa.ch/models --modeldir https://vsa.ch/models 2>C:\ilimodels_VSA.log

Bei Neuerungen lohnt es sich, den ilicache zu löschen - den Pfad dazu findet man im log:
Info: ilifile <C:\Users\Stefan\.ilicache\405.sia.ch\models\2015\Base_d-20181005.ili>

@sjib
Copy link

sjib commented Jul 18, 2023

Es geht auch mit einer lokalen Kopie des Repos (zum Beispiel, wenn man Änderungen testen will bevor man es online stellt):
java -jar ili2c.jar --check-repo-ilis https://vsa.ch/models --modeldir C:\PatchChange2020.0.1\

oder mit log:
java -jar ili2c.jar --check-repo-ilis https://vsa.ch/models --modeldir C:\PatchChange2020.0.1\ 2>C:\PatchChange2020.0.1\ilimodels_VSA.log

@sjib
Copy link

sjib commented Jul 18, 2023

Wäre schön, wenn auch die anderen oben erwähnten Funktionen noch dokumentiert würden.

@sjib
Copy link

sjib commented Jul 18, 2023

--listModels und --listAllModels zeigen mir das ilimodels eines Repos an - ich sehe keinen Unterschied. Kann ich ein spezifisches Modell angeben?

@sjib
Copy link

sjib commented Jul 18, 2023

--listData zeigt mir das ilidata an

java -jar ili2c.jar --listData https://vsa.ch/models

@sjib
Copy link

sjib commented Jul 18, 2023

Mit java -jar ili2c.jar --help scheint es doch noch mehr Infos zu geben:

C:\Daten\Firma\7_Partnerorganisationen\71_KOGIS\710_INTERLIS\Software\Interlis2Compiler\ili2c-5.3.2>java -jar ili2c.jar --help
INTERLIS Compiler, Version 5.3.2-6fb5df2877070aeb16c7b39a206a61e2518682c8
Distributed by the Coordination of Geographic Information
and Geographic Information Systems Group (COSIG), CH-3084 Wabern
Developed by Adasys AG, CH-8005 Zurich
Maintained by Eisenhut Informatik AG, CH-3400 Burgdorf
See http://www.interlis.ch for information about INTERLIS
Parts of this program have been generated by ANTLR; see http://www.antlr.org
This product includes software developed by the
Apache Software Foundation (http://www.apache.org/).

DESCRIPTION
Parses and compiles INTERLIS Version 2.3 data model definitions.
Other options include conversion from INTERLIS Version 1 and back
(option -o1) and generation of an XML-Schema, released 2001 (option -oXSD).

USAGE
ili2c [Options] file1.ili file2.ili ...

OPTIONS

--no-auto don't look automatically after required models.
-o0 Generate no output (default).
-o1 Generate INTERLIS-1 output.
-o2 Generate INTERLIS-2 output.
-oXSD Generate an XTF XML-Schema.
-oGML Generate an eCH-118-1.0/GML3.2-Schema.
-oILIGML2 Generate an eCH-118-2.0/GML3.2-Schema.
-oFMT Generate an INTERLIS-1 Format.
-oIMD Generate Model as IlisMeta07 INTERLIS-Transfer (XTF).
-oIMD16 Generate Model as IlisMeta16 INTERLIS-Transfer (XTF).
-oNLS Generate an Translation-XML file.
--nlsxml file Name of the Translation-XML file.
--lang lang Language (de,fr,it or en).
--trafoDiff d_x,d_y offset to calculate new coord domains
--trafoFactor f_x,f_y factor to calculate new coord domains
--trafoEpsg code new EPSG code (e.g. 2056)
--trafoImports newImport=oldImport change the name of an imported model (e.g. GeometryCHLV95_V1=GeometryCHLV03_V1)
--trafoNewModel newName name of the new model.
-oUML Generate Model as UML2/XMI-Transfer (eclipse flavour).
-oIOM (deprecated) Generate Model as INTERLIS-Transfer (XTF).
--check-repo-ilis uri check all ili files in the given repository.
--clone-repos clones the given repositories to the --out folder.
--listModels uri list all models starting in the given repository. (IliRepository09)
--listAllModels uri list all models (without removing old entries) starting in the given repository. (IliRepository09)
--listModels2 uri list all models starting in the given repository. (IliRepository20)
--listAllModels2 uri list all models (without removing old entries) starting in the given repository. (IliRepository20)
--listData uri list all data starting in the given repository.
--translation translatedModel=originModel assigns a translated model to its orginal language equivalent.
--out file/dir file or folder for output (folder must exist).
--modeldir %ILI_DIR;http://models.interlis.ch/;%JAR_DIR list of directories with ili-files.
--proxy host proxy server to access model repositories.
--proxyPort port proxy port to access model repositories.
--with-predefined Include the predefined MODEL INTERLIS in
the output. Usually, this is omitted.
--without-warnings Report only errors, no warnings. Usually,
warnings are generated as well.
--trace Display detailed trace messages.
--quiet Suppress info messages.
-h|--help Display this help text.
-u|--usage Display short information about usage.
-v|--version Display the version of ili2c.

EXAMPLES

Check whether an INTERLIS definition in "file1.ili" is valid:
java -jar ili2c file1.ili

Check whether a definition distributed over several files is valid:
java -jar ili2c file1.ili file2.ili

Generate an INTERLIS-1 definition:
java -jar ili2c -o1 file1.ili file2.ili

Generate an INTERLIS-2 definition:
java -jar ili2c -o2 file1.ili file2.ili

Generate a definition of the predefined MODEL INTERLIS:
java -jar ili2c -o2 --with-predefined

Generate an XML-Schema:
java -jar ili2c -oXSD file1.ili file2.ili

Generate a Translation-XML file:
java -jar ili2c -oNLS --out translation.xml file.ili

Generate a translated INTERLIS-2 definition with help of a Translation-XML file:
java -jar ili2c -o2 --out file_it.ili --lang it --nlsxml translation.xml file.ili

Generate a CRS transformed INTERLIS-2 definition:
java -jar ili2c -o2 --out file_LV95.ili --trafoNewModel model_LV95 --trafoDiff 2000000,1000000 --trafoFactor 1,1 --trafoEpsg 2056 --trafoImports GeometryCHLV95_V1=GeometryCHLV03_V1 file.ili

List all models starting in the given repository:
java -jar ili2c --listModels http://models.interlis.ch/

List all data starting in the given repository:
java -jar ili2c --listData http://models.interlis.ch/

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