-
Notifications
You must be signed in to change notification settings - Fork 54
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
move alaska, hawaii, and puerto rico into frame with lower 48 states all in an albers #167
Conversation
Does it work line your example, overwriting thegeom, it does it only work
|
I can easily change it to be agnostic to the input geometry, which might be more natural: the srid you put in is the srid you get out. updating the_geom_webmercator works if it's transformed: update states_table
set the_geom_webmercator = ST_Transform(CDB_AlbersUSA(the_geom,state_identifier),3857) But that doesn't trigger |
Yep, got it got, I missed the srid parameter. Looks great! On Tue, Sep 29, 2015 at 12:12 PM, Andy Eschbacher notifications@github.com
andrewxhill http://twitter.com/andrewxhill |
@rochoa @javisantana, what do you think of this? Also, how should I test it? |
Why this needs to be a function in the extension and not a table in common data? |
Yeah. Where should I save this function for later reference, then? |
Because any user that wants to transform their own data to match will need
|
I think we should do something more generic here, we know a lot of countries have this problem, so why now having a table with the codes <-> transformations (and projection), like
and the a table like
maybe sounds overkill but adding so concrete functionality to a core extension seems weird (not against it tho) |
Ok, I'll:
|
@ohasselblad there was a comment from Cindy B about the Census maps that she was a part of making... apparently AK (the state itself) prefers to have AK above the contiguous US. I know you and I had discussed the idea of having a couple of different layouts for templates including what USGS and Census do. On a design note: she also said that I should make sure to shadow in Canada, Mexico in the background. Example of one her maps: |
i see this working when you have control of the non-map layout too, but for On Mon, Oct 19, 2015 at 8:39 AM, Mamata Akella notifications@github.com
andrewxhill http://twitter.com/andrewxhill |
And I did make Alaska larger than it is in most other projections like this!
|
Hey there, I'm happy to unearth this :) One thing that is noticed when mapping the Zika outbreak: american territories are missing (American Samoas and US Virgin Islands). They are important, no? This would be awesome if merged - even with only the USA, but a with generic name. |
A quick way to add separator lines :
|
Stale |
This function projects U.S. states and Puerto Rico into a frame that's easy to view for election maps, etc.
Sample usage:
Produces a map like this:
I'm looking for feedback on:
cc @makella @andrewxhill