I have a polygon with a 40m diameter and several points that lay inside it. Now I want to reformat the point locations (projected in DHDN/GK-3, but could vary) to x-y coordinates ranging from zero to the maximal diameter of the polygon (in this case 40m).
I am working in R and therefore I need a scripted solution (this is just a testing subset and many more follow, therefore "click"-solutions in Qgis/arcgis won't suffice.)
Pictures say more than words: The triangle is the polygons centroid. The green dots the point locations.
I appreciate any coding assistance :-)