aboutsummaryrefslogtreecommitdiffstats
path: root/README.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'README.adoc')
-rw-r--r--README.adoc58
1 files changed, 1 insertions, 57 deletions
diff --git a/README.adoc b/README.adoc
index 3893c81..d84decf 100644
--- a/README.adoc
+++ b/README.adoc
@@ -82,60 +82,4 @@ https://kartta.hel.fi/avoindata/dokumentit/Aineistolista_wfs_avoindata.html
WFS Capabilities can be found from:
https://kartta.hel.fi/ws/geoserver/avoindata/wfs?version=2.0.0&request=GetCapabilities
-The data can then be downloaded with CURL. Examples below:
-
-=== Roads
-[source,bash]
-----
-# First download the full dataset
-curl -X GET \
- "https://kartta.hel.fi/ws/geoserver/avoindata/wfs?\
-service=WFS&\
-version=2.0.0&\
-request=GetFeature&\
-typeNames=avoindata:Liikennevaylat&\
-outputFormat=application/json" \
- -o liikennevaylat_full.geojson
-
-# Then filter with jq
-jq '{
- type: .type,
- features: [.features[] | select(.properties.alatyyppi == "Moottoriväylä")],
- crs: .crs
-}' liikennevaylat_full.geojson > moottorivaylat.geojson
-----
-
-[source,bash]
-----
-jq '[.features[].properties.paatyyppi | select(. != null)] | unique' liikennevaylat_full.geojson
-----
-
-=== Train stations
-[source,bash]
-----
-curl -X GET \
- "https://kartta.hel.fi/ws/geoserver/avoindata/wfs?\
-service=WFS&\
-version=2.0.0&\
-request=GetFeature&\
-typeNames=avoindata:Seutukartta_liikenne_juna_asema&\
-outputFormat=application/json&\
-srsName=EPSG:4326" \
- -o juna_asemat.geojson
-----
-
-
-=== Railway lines
-
-[source,bash]
-----
-curl -X GET \
- "https://kartta.hel.fi/ws/geoserver/avoindata/wfs?\
-service=WFS&\
-version=2.0.0&\
-request=GetFeature&\
-typeNames=avoindata:Seutukartta_liikenne_juna_rata&\
-outputFormat=application/json&\
-srsName=EPSG:4326" \
- -o juna_radat.geojson
-----
+The node.js script `download.js` downloads the material.