Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create stock overpass query using drawn shape #18

Merged
merged 5 commits into from
Jul 17, 2018

Conversation

kellyi
Copy link
Contributor

@kellyi kellyi commented Jul 17, 2018

Overview

This PR creates a stock overpass query using the drawn shape sent by the user.

The workflow for this is currently not the most apparent, but we can fix that as we go.

Connects #6

Demo

buildingdata

Notes

We're going to have to make this Overpass API request way more configurable but it's better to push off handling that until we have the configuration for the actual set of features.

Testing Instructions

  • get this branch, then update and server
  • visit localhost:4567, then draw a box in Guyana and click "Extract" and verify that it retrieves building data. Repeat for the shape/polygon. Note that the data seems to be sparse and is clustered around Georgetown for buildings.
  • try it out in IE11 also

@kellyi kellyi force-pushed the ki/create-stock-overpass-query branch 3 times, most recently from 8183a8f to 3bcfb20 Compare July 17, 2018 20:32
@kellyi kellyi changed the title WIP Ki/create stock overpass query Create stock overpass query using drawn shape Jul 17, 2018
@kellyi kellyi requested a review from rajadain July 17, 2018 20:39
@kellyi
Copy link
Contributor Author

kellyi commented Jul 17, 2018

Only the last 3 commits are from this branch. rebased

Kelly Innes added 5 commits July 17, 2018 16:57
- add some utility functions which can send a geojson polygon to the
overpass api, along with a stock request for building data
- update map component to display building data by point
@kellyi kellyi force-pushed the ki/create-stock-overpass-query branch from 3bcfb20 to ea425ab Compare July 17, 2018 20:57
Copy link
Contributor

@rajadain rajadain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 tested and works in both IE11 and Chrome. Not in this PR, but we'll need to refine this workflow somewhat. I think it's more natural for us to fetch the values and show them on screen before the user clicks "extract" to download the shapefile, but given the delay of the fetch it makes sense to have a button that starts that too.

@kellyi
Copy link
Contributor Author

kellyi commented Jul 17, 2018

Not in this PR, but we'll need to refine this workflow somewhat.

Sounds good to me. I'll tweak it a little while working on #8

@kellyi
Copy link
Contributor Author

kellyi commented Jul 17, 2018

Thanks for reviewing!

@kellyi kellyi merged commit 28f4988 into develop Jul 17, 2018
@kellyi kellyi deleted the ki/create-stock-overpass-query branch July 17, 2018 22:11
@rajadain rajadain assigned kellyi and unassigned rajadain Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants