Coder Social home page Coder Social logo

Comments (4)

hrbrmstr avatar hrbrmstr commented on May 27, 2024

Aye. I need to work out a bit more of the details for the point transformations for the elided states. Using the core transformation steps doesn't quite get the points where they need to be (though I never poked at it too hard).

from albersusa.

rdinter avatar rdinter commented on May 27, 2024

I might be amiss here, but do you have the original shapefile and the transformed shapefile as well? I think I'd be able to create a function with the original shapefile available to the transformed. There's probably an issue with different projections, but at least this would be a temporary first step...

from albersusa.

 avatar commented on May 27, 2024

The steps were outlined in a blog post last year (the transformations were the same, though I seem to have misplaced the generation script #sigh). When I helped someone last year with this some elided points did not get placed on the targets in HI and AK. Lemme try to regen it and provide the transform function (will try to get to it by the weekend).

from albersusa.

rdinter avatar rdinter commented on May 27, 2024

Found the blog post! And if the shapefiles for albersusa came from that particular post/repository, then it shouldn't be too difficult to add in an elide_points function here.

The maptools::elide() function implicitly uses a bounding box whenever it rotates or scales a polygon. So to rotate, scale, and shift points then we need the original bounding box used for Alaska and Hawaii to get the identical transformation and explicitly call this bounding box with the function. So long as the shapefiles are coming from that post and it's outlined methods, then I've got the bounding boxes.

from albersusa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.