Coder Social home page Coder Social logo

roadway_sidewalk_join's Introduction

Roadway Sidewalk Join

ArcPy script to join sidewalk information stored in a CSV to roadway centerlines.

Sidewalk information was stored within a CSV as sidewalk width between two cross streets such as: "Main St" in column 1, and "2nd St to 5th St" in column 2, with column 3 containing width. Roadway centerlines were stored as named line segments between intersections.

Since one sidewalk width entry can span multiple intersections, this script was built apply width information to just those segments between the cross streets.

First all segments with the street name in column 1 were selected and a single line was generated used all these segments, then the 2 streets from column 2 were selected where they intersected the primary street from column 1. The primary street would then be split at these two intersections, returning only the section between the two cross streets. This split line would then be used to select all the roadway centerline segments which perfectly matched its geometry, selecting just the primary road segments between the two cross streets, possibly extending past many intersections.

Finally a update cursor was then used to update the sidewalk diameters on the roadway centerlines table for these primary street segments.

roadway_sidewalk_join's People

Contributors

gavleavitt avatar

Watchers

 avatar

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.