-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* finalize readme and add information how interface was created * add doc, add tests
- Loading branch information
Showing
21 changed files
with
3,916 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
[run] | ||
source = | ||
src/geolink2oereb | ||
src | ||
omit = | ||
src/geolink2oereb/lib/interfaces/oerebkrmtrsfr/v2_0/classes.py | ||
src/geolink2oereb/cli.py | ||
setup.py | ||
tests/*.py | ||
[report] | ||
skip_covered = True | ||
show_missing = True | ||
[xml] | ||
output = coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Basic info | ||
========== | ||
|
||
|
||
This is a small library, meant to be used in combination with an *OEREBlex* instance. | ||
It is capable of parsing a received *lexlink* response (XML) and transforming it to the | ||
`OeREBKRMtrsfr_V2_0 <https://models.geo.admin.ch/V_D/OeREB/OeREBKRMtrsfr_V2_0.ili>`_ structure for further | ||
usage. | ||
|
||
To make the configuration more easy it is using the pyramid_oereb library to reuse the | ||
complex ÖREBlex | ||
`configuration <https://github.com/openoereb/pyramid_oereb/blob/master/dev/config/pyramid_oereb.yml.mako#L185-L223>`_ | ||
and ÖREBlex | ||
`parsing <https://github.com/openoereb/pyramid_oereb/blob/master/pyramid_oereb/contrib/data_sources/oereblex/sources/document.py>`_ | ||
already developed there. | ||
|
||
For development and integration purposes geolink2oereb offers a :ref:`CLI` executable. But its | ||
main use case is to be utilized as a library in another python libraries context. | ||
|
||
See the mgdm2oereb implementation as an example: | ||
|
||
`mgdm2oereb => oereblex.geolink2oereb <https://github.com/openoereb/mgdm2oereb/blob/master/xsl/oereblex.geolink2oereb.py>`_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
CLI | ||
=== | ||
|
||
The command line interface of geolink2oereb. | ||
|
||
Once installed as python package geolink2oereb offers a command line | ||
interface to issue the transformation of one lexlink id to the | ||
OEREB transfer structure. To get info about the parameters the cli programm | ||
needs, you can issue the execution as follows: | ||
|
||
.. code-block:: shell | ||
load_documents --help | ||
You can call the tool like this: | ||
|
||
.. code-block:: shell | ||
load_documents -l 4304 -t ch.Planungszonen -p <absolute-path-to-your-config>/config.yaml | ||
Please keep in mind, that the binary executable is available only in the | ||
python path where you installed it. If you installed it with | ||
a VENV you might prefix it with the path to you VENV's bin directory. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Module *geolink2oereb* | ||
========================== | ||
Module *transform* | ||
================== | ||
|
||
.. automodule:: geolink2oereb | ||
.. automodule:: geolink2oereb.transform | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
Interfaces | ||
========== | ||
|
||
*pyramid_oereb* | ||
--------------- | ||
|
||
.. automodule:: geolink2oereb.lib.interfaces.pyramid_oereb | ||
:members: | ||
|
||
*OeREBKRMtrsfr_V2_0 generators* | ||
------------------------------- | ||
|
||
.. automodule:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.generators | ||
:members: | ||
|
||
*OeREBKRMtrsfr_V2_0 classes* | ||
------------------------------- | ||
|
||
This is a selection of classes available to adapt to ``OeREBKRMtrsfr_V2_0``. The selection shows the classes | ||
used in the current implementation. Please have a look in the source file to see the complete implementation. | ||
|
||
.. autoclass:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.OeREBKRM_V2_0_Dokumente_Dokument | ||
:members: | ||
:undoc-members: | ||
|
||
.. autoclass:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.OeREBKRM_V2_0_Amt_Amt | ||
:members: | ||
:undoc-members: | ||
|
||
.. autoclass:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.ZustaendigeStelleType | ||
:members: | ||
:undoc-members: | ||
|
||
.. autoclass:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.TitelType | ||
:members: | ||
:undoc-members: | ||
|
||
.. autoclass:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.TextImWebType | ||
:members: | ||
:undoc-members: | ||
|
||
.. autoclass:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.OeREBKRM_V2_0_MultilingualUri | ||
:members: | ||
:undoc-members: | ||
|
||
.. autoclass:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.OeREBKRM_V2_0_LocalisedUri | ||
:members: | ||
:undoc-members: | ||
|
||
.. autoclass:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.LocalisedTextType | ||
:members: | ||
:undoc-members: | ||
|
||
.. autoclass:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.LocalisedTextType86 | ||
:members: | ||
:undoc-members: | ||
|
||
.. autoclass:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.LocalisationCH_V1_LocalisedText | ||
:members: | ||
:undoc-members: | ||
|
||
.. autoclass:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.LocalisationCH_V1_MultilingualText | ||
:members: | ||
:undoc-members: | ||
|
||
``geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.GeneratedsSuper`` is the superclass all above | ||
mentioned classes are inheriting from. | ||
|
||
.. autoclass:: geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.GeneratedsSuper | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.