GithubHelp home page GithubHelp logo

miguelramosfdz / metroextractor-cities Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mapzen/metroextractor-cities

0.0 1.0 0.0 2.23 MB

JSON cities bounding boxes for chef-metroextractor

License: GNU General Public License v3.0

Ruby 100.00%

metroextractor-cities's Introduction

metroextractor-cities

Build Status

Extracts are built weekly. If you submit a pull for a new extract, it will not be available until the weekly build has completed. This typically takes place over the weekend.

Description

  • cities.json defines bounding boxes for various metro areas, which are used by chef-metroextractor to produce weekly extracts.

Pull Request Overview

You need to perform the following tasks for us to accept a pull request:

  • update cities.json with your changes. Do not modify cities.geojson, it will be generated automatically when your pull request is merged.
  • run the included tests, which will validate:
  • the syntax of the json
  • that the bounding boxes being sumbitted are valid
  • that the bounding boxes for cities all fall within their encompassing upper level bounding box (e.g. north_america)
  • the top/left/bottom/right bbox parameters should be carried out to the thousandths (three digits to the right of the decimal)

If you're unable to run the test suite locally, you can submit a pull request, but if the specs fail there will be a delay in getting your request resolved.

If in doubt, just submit an issue with your request rather than a pull request.

Running Tests

You will need to have a Ruby 2.x environment, then simply:

bundle install
bundle exec rake

Passing tests will look similar to the following:

Preparing sandbox
rm -rf /Users/grant/repos/mapzen/metroextractor-cities/spec/tmp
mkdir -p /Users/grant/repos/mapzen/metroextractor-cities/spec/tmp
cp -r Rakefile README.md spec/bbox_spec.rb spec/geojson_spec.rb spec/json_spec.rb spec/ruby_spec.rb spec/whitespace_spec.rb tasks/build_geojson.rb tasks/default.rb tasks/test.rb /Users/grant/repos/mapzen/metroextractor-cities/spec/tmp
Running rubocop
rubocop /Users/grant/repos/mapzen/metroextractor-cities/spec/tmp
Inspecting 9 files
.........

9 files inspected, no offenses detected
Validating cities.json bbox's
OK
Validating cities.json syntax
OK
Checking cities.json for invalid whitespace
OK
Validating cities.geojson syntax
OK

License and Authors

metroextractor-cities's People

Contributors

alemon212 avatar benfilbey avatar bidasking avatar chipkoziara avatar domiriel avatar erictheise avatar fitnr avatar freewalkzurich avatar garza avatar harshadevulapalli avatar heffergm avatar ianmacnz avatar jaakla avatar jonahadkins avatar jqtrde avatar kgjenkins avatar kuzkok avatar mapscientist avatar mdouchin avatar mirceaianc avatar missinglink avatar mrscotty avatar oscarfonts avatar paulschulz avatar rebsch avatar roaldl avatar sabas avatar smehenni avatar tmaybe avatar ueliw0 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.