Coder Social home page Coder Social logo

Label data review about sentinel_traj_nn HOT 2 CLOSED

nagellette avatar nagellette commented on June 12, 2024
Label data review

from sentinel_traj_nn.

Comments (2)

nagellette avatar nagellette commented on June 12, 2024

10m buffer: "fclass" in ("motorway", "primary", "secondary")
4m buffer: "fclass" in ( 'footway' , 'track', 'service' , 'steps' , 'track_grade1' , 'track_grade2' , 'track_grade3' , 'track_grade4' , 'track_grade5' , 'track', 'bridleway' )
6m buffer: remaining.

from sentinel_traj_nn.

nagellette avatar nagellette commented on June 12, 2024

Preperation of Montreal Data

  • Extract required data interval from osh.pbf file into osm.pbf.
    osmium time-filter quebec-internal.osh.pbf 2018-12-31T23:59:59Z -o quebec-internal_2018.osm.pbf

  • Extract Montreal area from osm.pbf file.
    osmium extract -b -75.0473,45.0678,-72.2555,46.0163 quebec-internal_2018.osm.pbf -o montreal-internal_2018.osm.pbf

  • Read montreal-internal_2018.osm.pbf with "QuickOSM" plugin. Only "QuickOSM" converts tag names to attribute fields.

  • Filter "highway" != '' and export into shp - exclude unnecessary fields especially the ones having inconsistent name with shape format.Output shapefile name is montreal-internal_2018_roads.shp.

  • Query for excluded roads. Output files are named with "reduced". This shape files are also projected to raster epsg codes.

"highway" = 'bridleway' or
"highway" = 'bus_guideway' or
"highway" = 'bus_stop' or
"highway" = 'corridor' or
"highway" = 'cycleway' or
"highway" = 'disused' or
"highway" = 'elevator' or
"highway" = 'footway' or
"highway" = 'path' or
"highway" = 'proposed' or
"highway" = 'raceway' or
"highway" = 'services' or
"highway" = 'steps' or
"highway" = 'track' or
"highway" = 'yes'
  • Following queries run and buffer_dis field updated with respective buffer value.

    • Query for 12m buffer roads
     "highway" = 'motorway' or
     "highway" = 'motorway_link' or
     "highway" = 'primary' or
     "highway" = 'primary_link' or
     "highway" = 'secondary' or
     "highway" = 'secondary_link'
    
    • Query for 7m buffer roads
     "highway" = 'tertiary' or
     "highway" = 'tertiary_link' or
     "highway" = 'trunk' or
     "highway" = 'trunk_link'
    
    • Query for 5m buffer roads
     "highway" = 'living_street' or
     "highway" = 'residential' or
     "highway" = 'rest_area' or
     "highway" = 'road' or
     "highway" = 'service'
    
    • Query for 4m buffer roads
     "buffer_dis" is null
    
  • "_buf" files are created using "buffer_dis" field using QGIS.

  • "_label" raster files created with using QGIS rasterize tool. Cell size is 2.5 x 2.5m and compression chosen as "DEFLATE"

from sentinel_traj_nn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.