View source: R/data.coordinates2gridcellnumber.R
data.coordinates2gridcellnumber | R Documentation |
Searches the number of the cell of a given spatial grid by given coordinates (Gauss-Krueger-Coordinates).
data.coordinates2gridcellnumber(grid, x,y)
grid |
The grid in which the cell should be searched. |
x |
The ‘Rechtswert’ of the Gauss-Krueger-Coordinates. |
y |
The ‘Hochwert’ of the Gauss-Krueger-Coordinates. |
Searches the number of the cell of a given spatial grid by given coordinates (Gauss-Krueger-Coordinates).
Returns the cell-number of the grid-cell which is next to the given coordinates.
Daniel Doktor, Maximilian Lange
## load grid containing spatial information data(relatedGrid) ## search position in grid xy <- util.geoco2gk(54.12,10.17,4) gridposition <- data.coordinates2gridcellnumber(grid=relatedGrid, x=xy[,1],y=xy[,2]) gridposition
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.