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

building a single line makes degeneracies #12

Open
mdsumner opened this issue Feb 5, 2018 · 1 comment
Open

building a single line makes degeneracies #12

mdsumner opened this issue Feb 5, 2018 · 1 comment

Comments

@mdsumner
Copy link
Member

mdsumner commented Feb 5, 2018

This doesn't do what you would like, we end up with one large line and a point at each lat

library(raster)
r <- raster(extent(100, 180, -75, -30), crs = "+init=epsg:4326", res  = 5 )
proj <- "+proj=lcc +lon_0=140 +lat_0=-50 +lat_1=-70 +lat_2=-40 +datum=WGS84"
library(graticule)
g <- graticule(xmin(r), seq(ymin(r), ymax(r), by = 10), ylim = c(ymin(r), ymax(r)), proj = proj)
@mdsumner
Copy link
Member Author

mdsumner commented Feb 5, 2018

It's actually that the parallels are zero-length, should just detect this case and avoid creating them

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

1 participant