Return x,y coordinates of a tree ring center point (P00) from shape file of tree ring points

ReadShapefile_P00(
  filename = "Abies_277_h400_TreeRing_Points.shp",
  id.tag = "id",
  ring.tag = "ring"
)

Arguments

filename

a shape file name of Tree ring points

id.tag

string, column name of id (attribute table)

ring.tag

string, column name of ring years (0 is cambium layer)

Value

numeric : x,y coordinates of a tree ring center point (P00)

Examples

.dir <- system.file("shp",package = "TreeRingShape")
.file <- "Abies_277_h400_TreeRing_Points.shp"
filename <- paste(.dir,.file,sep="/")
ReadShapefile_P00(filename)
#> [1]  8532.891 -9080.344