diff --git a/.env.local.example b/.env.local.example index 718039ce..5e3dbeb5 100644 --- a/.env.local.example +++ b/.env.local.example @@ -20,3 +20,9 @@ DAGSTER_POSTGRES_PASSWORD= # todo: find a container-env-var-based solution to configure the Geoserver # A random password which will be used for our central postgresql database. Should be long and should not contain special signs. IPL_POSTGRES_PASSWORD= +IPL_GTFS_DB_POSTGRES_PASSWORD= +# Currently we have to adapt this variable manually, to the latest imported GTFS database. +# Run the following command to list all databases within `gtfs-db`: +# docker compose --env-file .env --env-file .env.local exec gtfs-db /bin/sh -c 'env PGPASSWORD="$POSTGRES_PASSWORD" psql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -t -c "SELECT datname AS db FROM pg_catalog.pg_database"' +# todo: let gtfs-importer write `IPL_GTFS_DB_POSTGRES_DB`'s value +IPL_GTFS_DB_POSTGRES_DB=gtfs_… diff --git a/etc/geoserver/workspaces/MobiData-BW/gtfs-db/datastore.xml b/etc/geoserver/workspaces/MobiData-BW/gtfs-db/datastore.xml new file mode 100644 index 00000000..801a928c --- /dev/null +++ b/etc/geoserver/workspaces/MobiData-BW/gtfs-db/datastore.xml @@ -0,0 +1,43 @@ + + DataStoreInfoImpl--3b38816a:18a8b06ea7a:-7ff5 + gtfs-db + imported GTFS data + PostGIS + true + + WorkspaceInfoImpl--48f676ef:18997a59df5:-7ff6 + + + api + 300 + 50 + true + 1 + false + ${IPL_GTFS_DB_POSTGRES_DB} + gtfs-db + true + DISABLE + true + 1000 + true + true + true + 20 + false + FAST + 5432 + ${IPL_GTFS_DB_POSTGRES_PASSWORD} + 1 + postgis + mdbw + 10 + 3 + true + postgres + 300 + + <__default>false + 2023-09-12 20:19:22.888 UTC + false + \ No newline at end of file diff --git a/etc/geoserver/workspaces/MobiData-BW/gtfs-db/stops/featuretype.xml b/etc/geoserver/workspaces/MobiData-BW/gtfs-db/stops/featuretype.xml new file mode 100644 index 00000000..6a2eb4b2 --- /dev/null +++ b/etc/geoserver/workspaces/MobiData-BW/gtfs-db/stops/featuretype.xml @@ -0,0 +1,66 @@ + + FeatureTypeInfoImpl--3b38816a:18a8b06ea7a:-7ff4 + stops + stops + + NamespaceInfoImpl--48f676ef:18997a59df5:-7ff5 + + stops + + features + stops + + GEOGCS["WGS 84", + DATUM["World Geodetic System 1984", + SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], + AUTHORITY["EPSG","6326"]], + PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], + UNIT["degree", 0.017453292519943295], + AXIS["Geodetic longitude", EAST], + AXIS["Geodetic latitude", NORTH], + AUTHORITY["EPSG","4326"]] + EPSG:4326 + + 7.5113 + 10.492 + 47.533 + 49.792 + EPSG:4326 + + + 7.5113 + 10.492 + 47.533 + 49.792 + EPSG:4326 + + NONE + true + + + + false + + + + + false + + + false + + + DataStoreInfoImpl--3b38816a:18a8b06ea7a:-7ff5 + + false + false + + + 0 + 0 + false + false + false + false + false + \ No newline at end of file diff --git a/etc/geoserver/workspaces/MobiData-BW/gtfs-db/stops/layer.xml b/etc/geoserver/workspaces/MobiData-BW/gtfs-db/stops/layer.xml new file mode 100644 index 00000000..928b9b9f --- /dev/null +++ b/etc/geoserver/workspaces/MobiData-BW/gtfs-db/stops/layer.xml @@ -0,0 +1,17 @@ + + stops + LayerInfoImpl--3b38816a:18a8b06ea7a:-7ff3 + VECTOR + + StyleInfoImpl--3b38816a:18a8b06ea7a:-7ff1 + + + FeatureTypeInfoImpl--3b38816a:18a8b06ea7a:-7ff4 + + + 0 + 0 + + 2023-09-12 20:27:19.936 UTC + 2023-09-12 20:39:55.865 UTC + \ No newline at end of file