Skip to content

Real Estate

vvmruder edited this page Mar 29, 2017 · 3 revisions

Source: You can configure the source of the real estate entity in the yaml file. Possible source types for real estate are as follows:

  1. database
    • source:
      • class: The class which is used for accessing real estate elemtns. The standard is configuration will be pyramid_oereb.lib.sources.real_estate.RealEstateDatabaseSource. With this element you have widely access to most databases which are supported by sqlalchemy and geoalchemy2 via a self defined model (see model parameter description below). We assume both, real estates and SDR's are stored in the same table/view. If this is not the case in your environment, you need to adapt this standard database source class to a own behaviour.
      • params (The parameters which are necessary to define for the pyramid_oereb.lib.sources.real_estate.RealEstateDatabaseSource):
        • db_connection: the rfc1738 conform string representation of the desired target database (e.g.: postgresql://postgres:password@localhost/database_name
        • model: The sqlalchemy orm model class which represents real estate entities in the database. Do the mapping to your structure in a own sqlalchemy model class. This means, you need to create a own model and link it here before this system is able to work properly.
Clone this wiki locally