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

Serve combined GeoJSON files? #2

Open
daguar opened this issue Jan 13, 2014 · 8 comments
Open

Serve combined GeoJSON files? #2

daguar opened this issue Jan 13, 2014 · 8 comments

Comments

@daguar
Copy link

daguar commented Jan 13, 2014

Wondering if it makes sense to also serve, eg, a single GeoJSON file for all state boundaries together.

(This is just a use-case I've bumped up against time and again, and while GitHub seems like a great platform for geo hosting, I can't seem to find a canonical repo for this. Is this it??? 😄 )

@konklone
Copy link
Member

I'd love it to be that canonical repo! If you put together a US/states.geojson with each state boundary showing, I'll happily accept it.

@daguar
Copy link
Author

daguar commented Jan 14, 2014

Cool -- I'll try to do this when I find a second (only issue I can see would be making sure they're in sync with any changes to the others, but that could be a YAGNI problem for now.)

Related: if it could be canonical, I for one think it would be super rad if this repo had tons of other shapes that are relevant for US gov't data mapping (counties, MSAs, etc.)

The thought that pops into my head then, though, is whether the best naming convention for those things would be a repo like geography instead of districts

(I'm just imagining how awesome it would be for someone to be able to query unitedstates/geography/msa/new_york-newark-jersey_city_ny-nj-pa.geojson and know it would be there)

@konklone
Copy link
Member

I'd prefer to grow iteratively, as needs arise. So if people want to submit counties, MSAs, etc., then we can consider and adapt to their inclusion then.

I think it's likely some real basic scripting may be helpful to manage keeping files in sync. That's the downside of using a static file approach like this. However, we could also in theory produce combined files using Jekyll.

I'm not sure how we'd get to the point where you could type in arbitrary combinations of slugs in a URL and get a dynamically generated map, though. And I don't want to generate static files for every possible combination. There are some things you're better off using an API for (which is why I link to a few in the README).

@daguar
Copy link
Author

daguar commented Jan 14, 2014

I'm not sure how we'd get to the point where you could type in arbitrary combinations of slugs in a URL and get a dynamically generated map, though.

Sorry, I think my example was confusing: New York-Newark-Jersey City NY-NJ-PA is an example of a single MSA (I'm definitely not suggesting dynamic compilation, which is certainly the purview of an API.)

@konklone
Copy link
Member

Ah, got it.

@bradoyler
Copy link

PR #6 includes a topojson file for all states in context of 114th congress.
(see: https://github.com/bradoyler/districts/blob/topojson-make/us/114th-congress.json)

@mhkeller
Copy link

Merged files would be great. Especially with party affiliation.

@Andrew-Chen-Wang
Copy link

If there is still interest, please take a look at: https://github.com/Andrew-Chen-Wang/district-autoupdate It'll generate your merged file, but this GitHub actions only applies to the cds folder (the one applicable thing for my use case).

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

No branches or pull requests

5 participants