Skip to content

Como transformar o arquivo shape em "SpatialPolygonsDataFrame"? #25

@Marcosfrog

Description

@Marcosfrog

Olá pessoal, tudo bem né!?

Estou trabalhando com distribuição de espécies e quero verificar o quanto das ocorrências estão dentro das áreas protegidas, porém estou com problemas em chamar o shape com as áreas de proteção. Gostaria de saber como transformar o arquivo shape em um Spatial Polygons Data Frame. Alguém pode me ajudar?

Segue abaixo as informações e o erro reportado:


Comando:

IUCN.eval(MyData, country_map = NULL, Cell_size_AOO = 2, Cell_size_locations = 10,
Resol_sub_pop = 5, method_locations = "fixed_grid", Rel_cell_size = 0.05,
DrawMap = TRUE, add.legend = TRUE, file_name = NULL, export_shp = TRUE,
write_shp = TRUE, write_results = TRUE, map_pdf = TRUE, draw.poly.EOO = TRUE, exclude.area = TRUE, method_protected_area = "no_more_than_one", protec.areas = "UCs" ,
ID_shape_PA = "ID_UC0", buff_width = 0.1, SubPop = TRUE, alpha = 1, buff.alpha = 0.1,
method.range = "convex.hull", nbe.rep.rast.AOO = 0, showWarnings = TRUE, write_file_option = "excel",
parallel = FALSE, NbeCores = 2)

Reporta o seguinte erro:

Error in IUCN.eval(MyData, country_map = NULL, Cell_size_AOO = 2, Cell_size_locations = 10, :
protec.areas should be a spatialpolygondataframe


Grato!!!!!!!!!!!

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