Skip to content

Provider to convert DGT from infocar.dgt.es/datex2 to ArcGIS Feature Service

Notifications You must be signed in to change notification settings

esri-es/koop-provider-dgt-datex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koop-provider-dgt-datex

This is a KoopJS provider to extract, transform and load cameras and radars from the service of the General Direction of Traffic of Spain as an ArcGIS Feature Service.

Demo: check sample map with the data

Screenshot

Run standalone provider

Just clone this repository, install the dependecies and run koop serve

$ git clone [email protected]:esri-es/koop-provider-dgt-datex.git
$ npm install
$ koop serve

Then you are ready to go: http://localhost:8080/koop-provider-dgt-datex/{entity}/rest/services/FeatureServer/0/query

{entity} can be: cameras, cabin_radars, segment_radars

You can test it using the following FeatureLayer sample:

Codepen screenshot.

Note: To be able to run it on the ArcGIS Map Viewer you will need to serve it over HTTPs. For development environments you can use ngrok. Once installed, run: ngrok http 127.0.0.1:8080 and open the domain it provides + /koop-provider-dgt-datex/cameras/rest/services/FeatureServer/0/query.

Install this provider in a new Koop hasOwnProperty

You can follow the same steps as describe in this tutorial. Just replace de plugin name:

koop new app demo-app
cd demo-app

koop add provider koop-provider-dgt-datex
koop serve

Export to GeoSJON

Read: export/README.md

More info

Any questions?

Feel free to ask using the issues.

About

Provider to convert DGT from infocar.dgt.es/datex2 to ArcGIS Feature Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published