-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
888 additions
and
195 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
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,29 @@ | ||
.. _contrib-data-sources: | ||
|
||
Data Sources | ||
------------ | ||
|
||
``pyramid_oereb`` provides a plugable system to offer an extendable system. The most | ||
interesting part of that is probably the extension of what data sources should be | ||
connected to the core system of ``pyramid_oereb``. | ||
|
||
As of now ``pyramid_oereb`` offers the following data sources (db structures) you can store | ||
your data to: | ||
|
||
* :ref:`contrib-data-sources-standard` | ||
* oereblex | ||
* interlis 2.3 | ||
|
||
|
||
|
||
In addition there is a source to use with the address localisation: | ||
|
||
* swisstopo | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
standard/index | ||
oereblex/index | ||
interlis_2_3/index | ||
swisstopo/index |
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,29 @@ | ||
.. _contrib-data-sources: | ||
|
||
Data Sources | ||
------------ | ||
|
||
``pyramid_oereb`` provides a plugable system to offer an extendable system. The most | ||
interesting part of that is probably the extension of what data sources should be | ||
connected to the core system of ``pyramid_oereb``. | ||
|
||
As of now ``pyramid_oereb`` offers the following data sources (db structures) you can store | ||
your data to: | ||
|
||
* :ref:`contrib-data-sources-standard` | ||
* oereblex | ||
* interlis 2.3 | ||
|
||
|
||
|
||
In addition there is a source to use with the address localisation: | ||
|
||
* swisstopo | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
standard/index | ||
oereblex/index | ||
interlis_2_3/index | ||
swisstopo/index |
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,8 @@ | ||
.. _contrib-data-sources-interlis-23: | ||
|
||
Application schema Models | ||
========================= | ||
|
||
|
||
.. toctree:: | ||
:hidden: |
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,8 @@ | ||
.. _contrib-data-sources-interlis-23: | ||
|
||
Application schema Models | ||
========================= | ||
|
||
|
||
.. toctree:: | ||
:hidden: |
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,8 @@ | ||
.. _contrib-data-sources-oereblex: | ||
|
||
ÖREBlex | ||
======= | ||
|
||
|
||
.. toctree:: | ||
:hidden: |
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,8 @@ | ||
.. _contrib-data-sources-oereblex: | ||
|
||
ÖREBlex | ||
======= | ||
|
||
|
||
.. toctree:: | ||
:hidden: |
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,43 @@ | ||
.. _contrib-data-sources-standard: | ||
|
||
Standard | ||
^^^^^^^^ | ||
|
||
The standard data source is a binding to a database following the definitions of | ||
`OeREBKRMkvs_V2_0 <http://models.geo.admin.ch/V_D/OeREB/OeREBKRMkvs_V2_0.ili>`__ | ||
and `OeREBKRMtrsfr_V2_0 <http://models.geo.admin.ch/V_D/OeREB/OeREBKRMtrsfr_V2_0.ili>`__ | ||
but adds some magic sugar for convenience. | ||
|
||
Exemplary schema of a standard database: | ||
|
||
.. image:: ../../../../images/standard_database_schema_example.png | ||
:scale: 20 % | ||
:align: center | ||
|
||
This structure is defined as models for SQL-Alchemy ORM and as a fitting set of | ||
DataBaseSource-Adapters to hook it into the core of ``pyramid_oereb``. The models | ||
defined in this contribution package describing 2 different structures. The ``main`` | ||
definitions are used by ``pyramid_oereb`` application itself and contain the application | ||
configuration as suggested in | ||
`OeREBKRMkvs_V2_0 <http://models.geo.admin.ch/V_D/OeREB/OeREBKRMkvs_V2_0.ili>`__. | ||
The ``theme`` definitions define a single ÖREB-Theme as it is suggested by | ||
`OeREBKRMtrsfr_V2_0 <http://models.geo.admin.ch/V_D/OeREB/OeREBKRMtrsfr_V2_0.ili>`__. | ||
Please be aware that for performance reasons the schematic mapping of SQL-Alchemy ORM | ||
definitions and the linked INTERLIS models is not 1:1. | ||
|
||
The definition of main and theme schema share some classes. These are provided via | ||
factory methods at modul level. These methods can be found here :ref:`contrib-data-sources-standard-models` | ||
|
||
* :ref:`contrib-data-sources-standard-models` | ||
* :ref:`contrib-data-sources-standard-models-main` | ||
* :ref:`contrib-data-sources-standard-models-theme` | ||
* :ref:`contrib-data-sources-standard-sources` | ||
|
||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
models | ||
models-main | ||
models-theme | ||
sources |
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,43 @@ | ||
.. _contrib-data-sources-standard: | ||
|
||
Standard | ||
^^^^^^^^ | ||
|
||
The standard data source is a binding to a database following the definitions of | ||
`OeREBKRMkvs_V2_0 <http://models.geo.admin.ch/V_D/OeREB/OeREBKRMkvs_V2_0.ili>`__ | ||
and `OeREBKRMtrsfr_V2_0 <http://models.geo.admin.ch/V_D/OeREB/OeREBKRMtrsfr_V2_0.ili>`__ | ||
but adds some magic sugar for convenience. | ||
|
||
Exemplary schema of a standard database: | ||
|
||
.. image:: ../../../../images/standard_database_schema_example.png | ||
:scale: 20 % | ||
:align: center | ||
|
||
This structure is defined as models for SQL-Alchemy ORM and as a fitting set of | ||
DataBaseSource-Adapters to hook it into the core of ``pyramid_oereb``. The models | ||
defined in this contribution package describing 2 different structures. The ``main`` | ||
definitions are used by ``pyramid_oereb`` application itself and contain the application | ||
configuration as suggested in | ||
`OeREBKRMkvs_V2_0 <http://models.geo.admin.ch/V_D/OeREB/OeREBKRMkvs_V2_0.ili>`__. | ||
The ``theme`` definitions define a single ÖREB-Theme as it is suggested by | ||
`OeREBKRMtrsfr_V2_0 <http://models.geo.admin.ch/V_D/OeREB/OeREBKRMtrsfr_V2_0.ili>`__. | ||
Please be aware that for performance reasons the schematic mapping of SQL-Alchemy ORM | ||
definitions and the linked INTERLIS models is not 1:1. | ||
|
||
The definition of main and theme schema share some classes. These are provided via | ||
factory methods at modul level. These methods can be found here :ref:`contrib-data-sources-standard-models` | ||
|
||
* :ref:`contrib-data-sources-standard-models` | ||
* :ref:`contrib-data-sources-standard-models-main` | ||
* :ref:`contrib-data-sources-standard-models-theme` | ||
* :ref:`contrib-data-sources-standard-sources` | ||
|
||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
models | ||
models-main | ||
models-theme | ||
sources |
Oops, something went wrong.