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

分割メッシュコードの番号の割り振りが間違っている #8

Closed
uribo opened this issue Nov 29, 2017 · 1 comment
Closed
Assignees
Labels

Comments

@uribo
Copy link
Owner

@uribo uribo commented Nov 29, 2017

library(jpmesh)
library(tidyverse)
library(leaflet)
library(sf)

# Create 500m mesh data (polygon)
paste0(36233799, 1:4) %>% 
  as_data_frame() %>% 
  set_names(c("meshcode")) %>% 
  mutate(out = pmap(., mesh_to_coords)) %>% 
  unnest() %>% 
  mutate(out = st_as_sfc(pmap_chr(., jpmesh:::mesh_to_poly))) %>% 
  st_sf() -> d

# Check
leaflet(data = d) %>% addTiles() %>% 
  addPolygons() %>% 
  addMarkers(data = d %>% st_centroid(),
             label = ~meshcode,
             labelOptions = labelOptions(noHide = TRUE))

aa

分割メッシュコードの割り当ては南西(1 左下)、南東(2 右下)、北西(3 左上)、北東(4 右上)の順でなければいけない。

@uribo uribo added the bug 💣 label Nov 29, 2017
@uribo uribo self-assigned this Nov 29, 2017
@uribo uribo closed this in cd897a3 Nov 29, 2017
@uribo
Copy link
Owner Author

@uribo uribo commented Nov 29, 2017

修正した

bb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.