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

Switch to geoAlbersUsaPr. #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Switch to geoAlbersUsaPr. #36

wants to merge 1 commit into from

Conversation

mbostock
Copy link
Member

Example: https://observablehq.com/@mbostock/hispanic-or-latino-origin-by-u-s-county

Screen Shot 2020-05-12 at 10 38 30 AM

Will likely require a major version bump, and depends on d3/d3-geo#152 so that users can easily combine with non-projected data. Should probably be combined with #34.

@mbostock
Copy link
Member Author

Per discussion in d3/d3-geo#152, this could alternatively be made available as a separate file (counties-albers-pr-10m.json) so that users can opt-in to geoAlbersUsaPr if desired. However, I’ll note that U.S. territories (Puerto Rico, American Samoa, Guam, the Northern Mariana Islands, and the U.S. Virgin Islands) are already included in the non-projected files (e.g., counties-10m.json).

@Saravji
Copy link

Saravji commented May 14, 2020

Do we have a timeline for the albersUsaPr to become available. I'm working with map data that I have to supply actively, so can't fall back onto the above mentioned files. This would be the perfect projection for what I need.

cypressf added a commit to mit-jp/climate-risk-map that referenced this pull request Apr 4, 2021
Some of our data exists for puerto rico now

topojson from topojson/us-atlas#36

```
git clone [email protected]:topojson/us-atlas.git
cd us-atlas
yarn install
bash prepublish
```

open `counties-albers-10m.json` and use the following regex to find and replace all county names (they're redundant)

`,"properties":\{"name":".*?"\}`

Note: any roads, waterways, rails, etc need to be projected to match the PR albers projection, using the PR projection code matching the one in that repo
@jsolly
Copy link

jsolly commented Jun 20, 2024

+1 for this one.

Is this PR usable? Would love to be able to create a albersusa with Puerto Rico.

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