Skip to content

Get up and running with Fiware GIS (QGIS, ArcGIS Pro, OpenLayers) integrations.

License

Notifications You must be signed in to change notification settings

msgis/fiware-gis-quickstart

Repository files navigation

Fiware GIS Quickstart

Get up and running with Fiware GIS integrations (QGIS, ArcGIS and OpenLayers).


This repository contains everything you need to setup a minimal Fiware Context Broker including sample data and support services to quickly get started with the ms.GIS Fiware GIS integrations.

Quickstart

Requirements

  • docker 20.10.0+
  • git

First clone the repository

git clone https://github.com/msgis/fiware-gis-quickstart.git

and then run docker to start the app

cd fiware-gis-quickstart
docker compose up

The Fiware Context Broker (Orion LD) should be accessible on http://localhost:1026. To ensure the sample data has been imported, the entity types can be quieried via http://localhost:1026/ngsi-ld/v1/types and should contain at least Hydrant, Trinkbrunnen, Schwimmbad and NgsiProxyConfig.

If everything is up and running, proceed with the configuration of one or more Fiware GIS implementations:

Services

The docker-compose configuration includes the following services:

  • orion - the Fireware Context Broker, listening on http://localhost:2026
  • orionproxy - a simple reverse proxy (implemented with nginx) to allow CORS requests, listening on http://localhost:1026
  • mongo-db - the database used by orion
  • ngsiproxy - an instance of ngsi-proxy which exposes orion event subscriptions as EventSource for clients.
  • setup - imports sample data and configures ngsiproxy as soon as orion and ngsiproxy are up and running. The container will stop after the setup process has been finished.

Data and entity types

The setup process imports the following data into the Context Broker:

In addition to the entity types above, there is a special type called NgsiProxyConfig. This type is used to store the ngsiproxy configuration, so a client can find the matching EventSource url for an entity type if needed.

To reset the data/entities, the monog-db data volume can be removed by running

cd fiware-gis-quickstart
docker compose rm
docker volume rm fiware-gis-quickstart_mongo-db-data

Scorpio Broker

There is also a Docker Compose configuration available for running the Scorpio Broker. To use the Scorpio Broker instead of Orion-LD, simple run the docker compose command with a different input file:

docker compose -f ./docker-compose-scorpio.yaml up

The entity types imported to the Scorpio Broker are the same as for the Orion-LD variant. To reset the data/entities, the postgres data volume can be removed by running

cd fiware-gis-quickstart
docker compose -f ./docker-compose-scorpio.yaml rm
docker volume rm fiware-gis-quickstart_pgdata

Contributing

Everyone is invited to get involved and contribute to the project.

Simply create a fork and pull request for code contributions or feel free to open an issue for any other contributions or issues.

About

Get up and running with Fiware GIS (QGIS, ArcGIS Pro, OpenLayers) integrations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published