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

Add ogcapi-workspace #9

Merged
merged 1 commit into from
May 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SQLFeatureStore configVersion="3.4.0"
xmlns="http://www.deegree.org/datasource/feature/sql"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.deegree.org/datasource/feature/sql http://schemas.deegree.org/datasource/feature/sql/3.4.0/sql.xsd">
<JDBCConnId>oaf_db</JDBCConnId>
<FeatureTypeMapping name="KitaEinrichtungen" table="kita.kita_einrichtung">
<FIDMapping>
<Column name="einrichtung_einrnr" />
</FIDMapping>
<Primitive mapping="einrichtung_name" path="Name" />
<Primitive mapping="einrichtung_name_normalisiert" path="Name_normalisiert" />
<Primitive mapping="einrichtung_einrnr" path="Einrichtungsnummer" />
<Primitive mapping="einrichtung_telefon" path="Telefon" />
<Primitive mapping="einrichtung_fax" path="Fax" />
<Primitive mapping="einrichtung_strasse" path="Strasse" />
<Primitive mapping="einrichtung_hausnr" path="Hausnr" />
<Primitive mapping="einrichtung_hausnr_alpha" path="Hausnr_alpha" />
<Primitive mapping="einrichtung_plz" path="PLZ" />
<Primitive mapping="einrichtung_ort" path="Ort" />
<Primitive mapping="stadtteil_name" path="Stadtteil">
<Join fromColumns="einrichtung_statgebiet" table="kita.kita_bezirk_stadtteil_info" toColumns="vkstageb_nr" />
</Primitive>
<Primitive mapping="bezirk_name" path="Bezirk">
<Join fromColumns="einrichtung_statgebiet" table="kita.kita_bezirk_stadtteil_info" toColumns="vkstageb_nr" />
</Primitive>
<Primitive mapping="traeger_name" path="Traeger">
<Join fromColumns="einrichtung_traegernr" table="kita.kita_traeger_spitzenverband" toColumns="traeger_nr" />
</Primitive>
<Primitive mapping="spitzenverb_name" path="Spitzenverband">
<Join fromColumns="einrichtung_traegernr" table="kita.kita_traeger_spitzenverband" toColumns="traeger_nr" />
</Primitive>
<Primitive mapping="einrichtung_ansprechpartner" path="Ansprechpartner" />
<Primitive mapping="leistung_name" path="Leistungsname">
<Join fromColumns="einrichtung_einrnr" table="kita.kita_leistung" toColumns="leistung_einrichtung_nr" />
</Primitive>
<Primitive mapping="einrichtung_zusatztextleistung" path="Zusatztextleistung" />
<Primitive mapping="einrichtung_zusatztextkita" path="Zusatztextkita" />
<Primitive mapping="er_refs_url" path="Informationen">
<Join fromColumns="einrichtung_einrnr" table="kita.kita_er_refs" toColumns="er_refs_einrichtung_nr" />
</Primitive>
<Primitive mapping="er_refs_email" path="E-Mail">
<Join fromColumns="einrichtung_einrnr" table="kita.kita_er_refs" toColumns="er_refs_einrichtung_nr" />
</Primitive>
<Primitive mapping="leistungsart_name" path="Leistungsarten" />
<Geometry mapping="the_geom" path="geom">
<StorageCRS srid="25832">EPSG:25832</StorageCRS>
</Geometry>
</FeatureTypeMapping>
</SQLFeatureStore>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<SQLFeatureStore configVersion="3.4.0"
xmlns="http://www.deegree.org/datasource/feature/sql"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.deegree.org/datasource/feature/sql http://schemas.deegree.org/datasource/feature/sql/3.4.0/sql.xsd">

<JDBCConnId>oaf_db</JDBCConnId>
<StorageCRS srid="25832" dim="2D">http://www.opengis.net/def/crs/EPSG/0/25832</StorageCRS>

<!-- Map table country to Feature Type -->
<FeatureTypeMapping table="strassenbaumkataster" name="strassenbaumkataster">
<FIDMapping>
<Column name="baum_id" />
</FIDMapping>
</FeatureTypeMapping>

</SQLFeatureStore>
16 changes: 16 additions & 0 deletions ogcapi-workspace/html/htmlview.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<HtmlView configVersion="3.4.0"
xmlns="http://www.deegree.org/ogcapi/htmlview"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.deegree.org/ogcapi/htmlview http://schemas.deegree.org/ogcapi/3.4.0/htmlview.xsd">

<CssFile>../html/lgv.css</CssFile>
<LegalNoticeUrl>https://www.lat-lon.de/Impressum.html</LegalNoticeUrl>
<PrivacyPolicyUrl>https://www.lat-lon.de/Datenschutz.html</PrivacyPolicyUrl>
<Map>
<WMSUrl version="1.3.0">https://sgx.geodatenzentrum.de/wms_topplus_open</WMSUrl>
<WMSLayers>web_grau</WMSLayers>
<CrsProj4Definition code="EPSG:25832">+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
</CrsProj4Definition>
</Map>

</HtmlView>
112 changes: 112 additions & 0 deletions ogcapi-workspace/html/lgv.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
/* Header */

.navbar {
background-color: #002f63;
}

/* Logo */

.navbar-brand {
display:none;
/*

background: url("https://localhost:8080/logo.png") center / contain no-repeat;
width: 110px;
height: 110px;
*/
}

/* Breadcrump */
nav .breadcrumb-item.active {
color: #6c757d;
}

nav .breadcrumb-item a:link {
color: #ffffff;
}

nav .breadcrumb-item a:visited {
color: #ffffff;
}

nav .breadcrumb-item a:hover {
color: #6c757d;
text-decoration: underline;
}

nav .breadcrumb-item a:active {
}

/* Formats */
nav .nav-link.disabled:link {
color: #6c757d;
}
nav .nav-link:link {
color: #ffffff;
}
nav .nav-link:visited {
color: #ffffff;
}
nav .nav-link:hover {
color: #6c757d;
text-decoration: underline;
}
nav .nav-link:active {
}

/* Table with data */
.propertylist {
list-style-type:none;
padding-left: 0;
}

/* Footer */
html {
height: 100%;
}

body {
position: relative;
margin: 0;
padding-bottom: 6rem;
min-height: 100%;
}

.page-footer{
position: absolute;
right: 0;
bottom: 0;
left: 0;
padding: 1rem;
background-color: #002f63;
text-align: right;
color: #ffffff;
}

/* Link Legal Notice */
#legalNotice:link {
color: #ffffff;
}
#legalNotice:visited {
color: #ffffff;
}
#legalNotice:hover {
color: #6c757d;
text-decoration: underline;
}
#legalNotice:active {
}

/* Link Privacy */
#legalNotice:link {
color: #ffffff;
}
#privacy:visited {
color: #ffffff;
}
#privacy:hover {
color: #6c757d;
text-decoration: underline;
}
#privacy:active {
}
18 changes: 18 additions & 0 deletions ogcapi-workspace/html/oaf.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<HtmlView configVersion="3.4.0"
xmlns="http://www.deegree.org/ogcapi/htmlview"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.deegree.org/ogcapi/htmlview http://schemas.deegree.org/ogcapi/3.4.0/htmlview.xsd">

<CssFile>../html/lgv.css</CssFile>
<LegalNoticeUrl>https://www.lat-lon.de/Impressum.html</LegalNoticeUrl>
<PrivacyPolicyUrl>https://www.lat-lon.de/Datenschutz.html</PrivacyPolicyUrl>
<DocumentationUrl>https://oaf.lat-lon.de/deegree-services-oaf/documentation/index.html</DocumentationUrl>
<Map>
<WMSUrl version="1.3.0">https://sgx.geodatenzentrum.de/wms_topplus_open</WMSUrl>
<WMSLayers>web_grau</WMSLayers>
<CrsProj4Definition code="EPSG:25832">+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
</CrsProj4Definition>
<Source><![CDATA[© <a href="https://sg.geodatenzentrum.de/web_public/Datenquellen_TopPlus_Open.pdf" target="_new">Datenquellen</a>]]></Source>
</Map>

</HtmlView>
18 changes: 18 additions & 0 deletions ogcapi-workspace/jdbc/oaf_db.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<DataSourceConnectionProvider configVersion="3.4.0"
xmlns="http://www.deegree.org/connectionprovider/datasource"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.deegree.org/connectionprovider/datasource http://schemas.deegree.org/jdbc/datasource/3.4.0/datasource.xsd">

<!-- Creation / lookup of javax.sql.DataSource instance -->
<DataSource javaClass="org.apache.commons.dbcp.BasicDataSource" destroyMethod="close"/>

<!-- Configuration of DataSource properties -->
<Property name="driverClassName" value="org.postgresql.Driver" />
<Property name="url" value="jdbc:postgresql://database:5432/oaf" />
<Property name="username" value="postgres" />
<Property name="password" value="postgres" />
<Property name="poolPreparedStatements" value="true" />
<Property name="maxActive" value="10" />
<Property name="maxIdle" value="10" />

</DataSourceConnectionProvider>
12 changes: 12 additions & 0 deletions ogcapi-workspace/ogcapi/datasets.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Datasets configVersion="3.4.0"
xmlns="http://www.deegree.org/ogcapi/datasets"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.deegree.org/ogcapi/datasets http://schemas.deegree.org/ogcapi/datasets/3.4.0/datasets.xsd">
<Title>Datasets des LGV HH</Title>
<Description><![CDATA[Testdaten des <a href="https://www.hamburg.de/bsw/landesbetrieb-geoinformation-und-vermessung/" target="_blank">LGV HH</a>]]></Description>
<Contact>
<Name>LGV Hamburg</Name>
<Url>https://www.hamburg.de</Url>
<EMail>info@hamburg.de</EMail>
</Contact>
</Datasets>
24 changes: 24 additions & 0 deletions ogcapi-workspace/ogcapi/kitaeinrichtung.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<deegreeOAF xmlns="http://www.deegree.org/ogcapi/features" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" configVersion="3.4.0" xsi:schemaLocation="http://www.deegree.org/ogcapi/features http://schemas.deegree.org/ogcapi/features/3.4.0/features.xsd">
<FeatureStoreId>kitaeinrichtung/datasource_kita_kitaeinrichtungen</FeatureStoreId>
<!-- First CRS must be http://www.opengis.net/def/crs/OGC/1.3/CRS84 to be conform to OGC API Features Core -->
<QueryCRS>http://www.opengis.net/def/crs/OGC/1.3/CRS84</QueryCRS>
<QueryCRS>http://www.opengis.net/def/crs/EPSG/0/4326</QueryCRS>
<QueryCRS>http://www.opengis.net/def/crs/EPSG/0/25832</QueryCRS>
<Metadata>
<ProviderLicense>
<Name>Datenlizenz Deutschland Namensnennung 2.0</Name>
<Url>https://www.govdata.de/dl-de/by-2-0</Url>
</ProviderLicense>
<DatasetLicense>
<Name>Datenlizenz Deutschland Namensnennung 2.0</Name>
<Url>https://www.govdata.de/dl-de/by-2-0</Url>
</DatasetLicense>
<DatasetCreator>
<Name>Behörde für Arbeit, Gesundheit, Soziales, Familie und Integration</Name>
<Url>https://www.hamburg.de/sozialbehoerde</Url>
<EMail>poststelle@soziales.hamburg.de</EMail>
</DatasetCreator>
<MetadataURL format="application/xml">https://metaver.de/csw?Service=CSW&amp;Request=GetRecordById&amp;Version=2.0.2&amp;id=C1AC42B2-C104-45B8-91F9-DA14C3C88A1F&amp;outputSchema=http://www.isotc211.org/2005/gmd&amp;elementSetName=full</MetadataURL>
<MetadataURL format="text/html">https://metaver.de/trefferanzeige?docuuid=C1AC42B2-C104-45B8-91F9-DA14C3C88A1F</MetadataURL>
</Metadata>
</deegreeOAF>
40 changes: 40 additions & 0 deletions ogcapi-workspace/ogcapi/strassenbaumkataster.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<deegreeOAF configVersion="3.4.0"
xmlns="http://www.deegree.org/ogcapi/features"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.deegree.org/ogcapi/features http://schemas.deegree.org/ogcapi/features/3.4.0/features.xsd">

<FeatureStoreId>strassenbaumkataster/datasource_strassenbaumkataster</FeatureStoreId>

<!-- First CRS must be http://www.opengis.net/def/crs/OGC/1.3/CRS84 to be conform to OGC API Features Core -->
<QueryCRS>http://www.opengis.net/def/crs/OGC/1.3/CRS84</QueryCRS>
<QueryCRS>http://www.opengis.net/def/crs/EPSG/0/4326</QueryCRS>
<QueryCRS>http://www.opengis.net/def/crs/EPSG/0/25832</QueryCRS>

<DateTimeProperties>
<DateTimeProperty>
<FeatureTypeName xmlns:app="http://www.deegree.org/app">app:strassenbaumkataster</FeatureTypeName>
<PropertyName xmlns:app="http://www.deegree.org/app">app:pflanzjahr</PropertyName>
</DateTimeProperty>
</DateTimeProperties>

<HtmlViewId>oaf</HtmlViewId>

<Metadata>
<ProviderLicense>
<Name>Provider license</Name>
<Description>no limitations to public access</Description>
</ProviderLicense>
<DatasetLicense>
<Name>Dataset license</Name>
<Url>https://www.govdata.de/dl-de/by-2-0</Url>
</DatasetLicense>
<DatasetCreator>
<Name>Dataset creator</Name>
<Url>https://www.hamburg.de/bukea/</Url>
<EMail>info@bukea.hamburg.de</EMail>
</DatasetCreator>
<MetadataURL format="application/xml">https://metaver.de/csw?REQUEST=GetRecordById&amp;SERVICE=CSW&amp;VERSION=2.0.2&amp;id=C1C61928-C602-4E37-AF31-2D23901E2540&amp;iplug=/ingrid-group:ige-iplug-hmdk.metaver&amp;elementSetName=full</MetadataURL>
<MetadataURL format="text/html">https://metaver.de/trefferanzeige?docuuid=C1C61928-C602-4E37-AF31-2D23901E2540&amp;plugid=/ingrid-group:ige-iplug-hmdk.metaver&amp;docid=C1C61928-C602-4E37-AF31-2D23901E2540</MetadataURL>
</Metadata>

</deegreeOAF>
66 changes: 66 additions & 0 deletions ogcapi-workspace/services/kitaeinrichtung_metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<deegreeServicesMetadata xmlns="http://www.deegree.org/services/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" configVersion="3.4.0" xsi:schemaLocation="http://www.deegree.org/services/metadata http://schemas.deegree.org/services/metadata/3.4.0/metadata.xsd">
<ServiceIdentification>
<Title>Kita Einrichtungen Hamburg</Title>
<Abstract><![CDATA[Es werden täglich zwei Dateien generiert:

1. Kita_Einrichtung.csv
2. Kita_Einrichtung_Leistung.csv

Die Datei Kita_Einrichtung.csv stellt für jede Kindertagesstätte genau eine Zeile mit Informationen bereit und ist nach der ersten Spalte KITAEinrichtung_EinrNr aufsteigend sortiert.

Die Datei Kita_Einrichtung_Leistung.csv beinhaltet sämtliche angebotenen Leistungen der Kindertagesstätten und ist ebenfalls nach der ersten Spalte KITAEinrichtung_EinrNr aufsteigend sortiert.

Format
Die Dateien sind unter der UTF-8 Codepage erstellt worden. Das Zeilenende ist mit Carriage Return (=Wagenrücklauf) + Line Feed (=Zeilenvorschub) gekennzeichnet. Die Spalten sind durch das Trennzeichen ^ (=Hütchen) separiert.

Datenstruktur
Die erste Zeile der Dateien ist mit dem Inhalt sep=^ für die Bearbeitung mit dem Programm Microsoft Excel optimiert. Wird nicht mit Excel gearbeitet, so ist diese Zeile zu ignorieren. Allerdings betrachtet Excel alle csv-Dateien grundsätzlich als ANSI-codiert und wandelt nicht automatisch nach UTF-8 um, so dass bspw. die Umlaute nicht korrekt dargestellt werden. Daher wird an dieser Stelle für den Import der Daten nach Excel ausdrücklich die Nutzung des excelinternen Textkonvertierungs-Assistenten empfohlen, da dort alle nötigen Einstellungen für einen fehlerfreien Import vorgenommen werden können.

Die zweite Zeile der Dateien enthält die Spaltenüberschriften.
Ab der dritten Zeile bis Dateiende befinden sich die exportierten Datensätze der Kita-Datenbank.


Spaltendefinition der Datei Kita_Einrichtung.csv
1. KITAEinrichtung_EinrNr Primärschlüssel, integer, NOT NULL
2. KITAEinrichtung_Name nvarchar(100), NULL
3. KITAEinrichtung_Strasse nvarchar(100), NULL
4. KITAEinrichtung_HausNr integer, NULL
5. KITAEinrichtung_HausNr_Alpha char(6), NULL
6. KITAEinrichtung_PLZ integer, NULL
7. KITAEinrichtung_Ort nvarchar(30), NULL
8. Stadtteil_Name nvarchar(30), NULL
9. KITABezirk_Name nvarchar(15), NULL
10. KITAEinrichtung_AnsprechPartner nvarchar(100), NULL
11. KITAEinrichtung_Telefon nvarchar(40), NULL
12. KITAEinrichtung_Fax nvarchar(50), NULL
13. KITATraeger_Name nvarchar(250), NULL
14. KITAEr_refs_URL nvarchar(100), NULL
15. KITAEr_refs_Email nvarchar(100), NULL

Spaltendefinition der Datei Kita_Einrichtung_Leistung.csv
1. KITAEinrichtung_EinrNr integer, NOT NULL
2. KITALeistung_Name nvarchar(100), NULL]]></Abstract>
</ServiceIdentification>
<ServiceProvider>
<ProviderName>LGV Hamburg</ProviderName>
<ProviderSite> </ProviderSite>
<ServiceContact>
<IndividualName> </IndividualName>
<PositionName>Geobasisinfrastruktur</PositionName>
<Phone> </Phone>
<Facsimile> </Facsimile>
<ElectronicMailAddress>udp-hilfe@gv.hamburg.de</ElectronicMailAddress>
<Address>
<DeliveryPoint>Neuenfelder Straße 19</DeliveryPoint>
<City>Hamburg</City>
<AdministrativeArea>HH</AdministrativeArea>
<PostalCode>21109</PostalCode>
<Country>Germany</Country>
</Address>
<OnlineResource>http://www.geoinfo.hamburg.de</OnlineResource>
<HoursOfService> </HoursOfService>
<ContactInstructions> </ContactInstructions>
<Role>PointOfContact</Role>
</ServiceContact>
</ServiceProvider>
</deegreeServicesMetadata>
Loading