Skip to content

LIN QMA polygons don't line up with statistical areas #12

@quantifish

Description

@quantifish
aa <- nz_fisheries_general_statistical_areas %>%
  dplyr::select(Statistica) %>%
  st_transform(crs = proj_nzsf()) %>%
  # st_snap(x = ., y = ., tolerance = 0.0001) %>%
  # st_simplify(dTolerance = 1) %>%
  st_union(by_feature = TRUE) %>%
  mutate(area = case_when(
    Statistica %in% c(401:412, "049", "050", "051", "052") ~ "a",
    Statistica %in% 601:625 ~ "b",
    TRUE ~ as.character("c")
  )) %>%
  group_by(area) %>%
  summarize(geometry = st_union(geometry))

ggplot() +
  geom_sf(data = aa, aes(fill = area)) +
  plot_qma(qma = "LIN", fill = "transparent") +
  # plot_statistical_areas(area = "stat area", fill = "transparent") +
  # plot_coast(resolution = "med", fill = "forestgreen", colour = "black", size = 0.3) +
  annotation_north_arrow(location = "tl", which_north = "true", style = north_arrow_nautical)

image

Also, there are some polygon slivers in the north island which I couldn't get rid of with snap or simplify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions