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

Check if point is within Greater London boundary #5

Open
mattkerlogue opened this issue Oct 7, 2020 · 6 comments
Open

Check if point is within Greater London boundary #5

mattkerlogue opened this issue Oct 7, 2020 · 6 comments
Labels
feature Suggested new functionality

Comments

@mattkerlogue
Copy link

Bit of extra effort, but perhaps you could store the boundary of Greater London (you can pull them from the ONS Geoportal using sf::st_read(https://opendata.arcgis.com/datasets/324a9f3ad2cc4a049e913dddc508aeb2_0.geojson?where=rgn19nm%20%3D%20'London')) and then check whether the random points calculated are located within this polygon.

@matt-dray
Copy link
Owner

matt-dray commented Oct 8, 2020

True.

This is the type of information that could be posted with the tweet itself, along with things like nearest tube (as per Ken Butler). I like the simplicity of the tweet content for now.

I'll definitely be doing further analysis, though. For example, a map app with pop-up info (like in/out of Greater London, what borough it's in, etc). Might try training a classifier on 'rural'/'urban' too.

@mattkerlogue
Copy link
Author

Agree with simplicity, was mainly thinking about it only giving "valid" London coordinates.

On rural/urban there's an ONS rural/urban classification.

@matt-dray
Copy link
Owner

Haha, I know all too well: I was on the team that devised and developed that classification! I was thinking of hand-tagging with a simple binary of 'built-up' versus not and then predicting new tweets as they come in.

@mattkerlogue
Copy link
Author

Would this risk tagging photos that are bang in the middle of large parks (Hyde Park, Richmond Park, Hampstead Heath) as "rural"? Maybe a different description "green/grey/brown":

  • Green: park/farmland
  • Grey: built environment
  • Brown: (ex-)industrial/construction

Also how it would treat large bodies of water (eg reservoirs and the lower reaches of the Thames)?

@matt-dray
Copy link
Owner

Water isn't built-up, so it would be 'not built-up' 😄

I was thinking of doing it for a 'train a classifier for beginners' sort of blog post, so simplicity would be key. Could demonstrate a few approaches re binary/multi-class. There's definitely a question about images that have multiple land-use types. Could quantify colour in the image to guess the predominant case.

@matt-dray
Copy link
Owner

Related: a post from Ken Butler on sampling points from within Toronto limits: http://ritsokiguess.site/docs/2020/10/10/sampling-from-locations-in-a-city/

@matt-dray matt-dray added the feature Suggested new functionality label Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Suggested new functionality
Projects
None yet
Development

No branches or pull requests

2 participants