Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 2.07 KB

README.md

File metadata and controls

67 lines (52 loc) · 2.07 KB

Import WFS to Elasticsearch

sudo ./import.sh

The target Elasticsearch-URL and index prefix can be configured at the top of the file.

By default the data is not persisted across container restarts. To enable this, you need to these actions, all from the base folder, not import-scripts:

-In the file ./docker-compose.yml, uncomment this line: # - ./docker/elasticsearch/data:/usr/share/elasticsearch/data.

-Create the folder ./docker/elasticsearch/data, if it does not exist: From the base folder: sudo mkdir docker/elasticsearch/data.

-Grant group write rights: sudo chmod g+w docker/elasticsearch/data


[old]

Before doing anything, you should do:

  • fill the config.json file in their respective directories with life
    • url: the URL to the WFS 1.1.0 aufgrabungen server
    • eSurl: the URL to the Elasticsearch server with index and type
    • baseUrl: the URL stump to the WFS 2.0.0 for everything else
  • run yarn in the respective directories before executing the scripts

districts

Inserts the districts into an elasticsearch index indexed with geo_shape

aufgrabungen

Inserts the construction sites into the places index. Execute with node aufgrabungen-to-elasticsearch.js

geojsonwfs

Inserts the following feature classes into the places index.

  • pool
  • agencies
  • bookbus
  • library
  • cemetery
  • wc
  • wifi
  • school
  • playground
  • sport
  • kindergarden

Execute with node index.js

sportstaetten-belegungsplan

Inserts the booking plans of sports facilities in Münster. You need to pass the environment parameter GOOGLE_API_KEY (Google Maps API key) when running the import script import_hallenbelegung.py

container

To update the JSON file with new container data to the following:

; out skel qt;

  • Find the JSON in the "data" tab