TfNSW Cycleways Data

From OpenStreetMap Wiki
Jump to navigation Jump to search

On the 16th of January 2020, Transport for New South Wales provided a waiver to the CC-BY 4.0 license on their open data portal. Cycleways data was one of the datasets affected. This page aims to catalogue the tagging scheme, import (or lack thereof) procedure, processing methods, and other relevant details.

Converting to .osm format

Tag transform file: https://gist.github.com/QuarkTheAwesome/bcaddee7a5d0dae5191a2124960e24ea

   ogr2ogr -f GeoJSON NSWBicycleNetwork5March2018.geojson NSWBicycleNetwork5March2018.shp
   npx geojson2osm NSWBicycleNetwork5March2018.geojson > NSWBicycleNetwork5March2018.osm
   osmfilter --fake-author NSWBicycleNetwork5March2018.osm -o=NSWBicycleNetwork5March2018.author.osm
   osmosis --read-xml file=NSWBicycleNetwork5March2018.author.osm --tf accept-ways STATUS=Existing --used-node --tt file=tfnsw-to-osm-osmosis.xml --write-xml NSWBicycleNetwork5March2018.tt.osm

The first two commands (ogr2ogr and npx) can be replaced with an import into JOSM (using the OpenData plugin) and subsequent export (right-click on the layer, select Save As). This might be required for JOSM to be able to read the final output.

Pre-generated .osm file (using JOSM OpenData method): https://mega.nz/#!9aYBgCaJ!dkLejZocwAlhmVb3QiOYp89xSWdgwmsOra-MplMxv9s

(Note: a previous version of this file had improper operator=City of Newcastle tags on every council-owned cycleway. Please redownload for an updated file!)

Tagging scheme

[coming soon after community discussion]