View source: R/btb_add_inspire.R
btb_add_inspire | R Documentation |
Creates Inpire names for a grid defined with :
centroids coordinates
Squares size(s)
Projection system
Ajoute les noms des identifiants en norme Inspire des carreaux définis à partir :
des coordonnées de leurs centroides
de la taille de leur côté en mètres
d'un système de projection)
btb_add_inspire( pts_centro, sEPSG, iCellSize, names_centro = c("x_centro", "y_centro") )
pts_centro |
(df object) : table of centroids. |
sEPSG |
(integer or character) : epsg code. |
iCellSize |
(integer) : cells size(s) in meters. Can be a vector for irregular grids |
names_centro |
(character vector) : vector of names for longitude/latitude variables. Default c("x_centro","y_centro"). |
(df) pts_centro table with additional idInspire variable
pts_centro <- data.frame(x_centro = c(100, 100, 300, 300, 500), y_centro = c(100, 300, 100, 300, 100)) btb_add_inspire(pts_centro, sEPSG = 2154, iCellSize = 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.