Coder Social home page Coder Social logo

grant-humphries / dev-near-light-rail Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 3.0 1.49 MB

Scripts used to determine the amount and value of real estate development that has occurred within walking distance of light rail lines since their creation

Python 50.80% Shell 8.82% SQLPL 0.28% PLpgSQL 6.72% HTML 3.40% CSS 3.76% JavaScript 17.43% Batchfile 8.79%

dev-near-light-rail's People

Contributors

grant-humphries avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dev-near-light-rail's Issues

Handle Overppass API timeouts

The overpass API occasionally times out which in my code throw a python error like the one below. Write some code to handle this that retries the download at least a couple of time if it fails

Traceback (most recent call last):
  File "g:\PUBLIC\GIS_Projects\Development_Around_Lightrail\dev-near-light-rail\bin\osm_hwy_to_shp-script.py", line 31, in <module>
    sys.exit(lightraildev.osm_hwy_to_shp.main())
  File "g:\public\gis_projects\development_around_lightrail\dev-near-light-rail\lightraildev\osm_hwy_to_shp.py", line 138, in main
    overpass2shp()
  File "g:\public\gis_projects\development_around_lightrail\dev-near-light-rail\lightraildev\osm_hwy_to_shp.py", line 25, in overpass2shp

    response = api.Get(overpass_query.format(values=values, bbox=bbox))
  File "g:\public\gis_projects\development_around_lightrail\dev-near-light-rail\eggs\overpass-0.4.0-py2.7.egg\overpass\api.py", line 45,
in Get
    raw_response = self._GetFromOverpass(full_query)
  File "g:\public\gis_projects\development_around_lightrail\dev-near-light-rail\eggs\overpass-0.4.0-py2.7.egg\overpass\api.py", line 102,
 in _GetFromOverpass
    raise TimeoutError(self._timeout)
overpass.errors.TimeoutError

explore possibility of bringing python constants into bash

There are a set of constants that need to be used in separate bash and python scripts, explorer the possibility of bring the constants define in python into bash instead of assigning them separately in both scripts. I've looked into this a bit already and it seems that this is a not usual thing to do, but it was thinking the folks on the python IRC channel may be able to give me a better ideas as to whether this is a good idea or not.

port network attributes.py to readme

the code contained within isn't actually executable and needs to be entered into the arcgis gui so the readme is a more appropriate place for these snippets

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.