Description Usage Arguments Details Value See Also Examples
Basic function to create a 'world file' as used by various non-geo image formats
Reformat to world vector.
1 2 3 | geo_world0(px, ul, sh = c(0, 0))
geotransform_to_world(x)
|
px |
pixel resolution (XY, Y-negative) |
ul |
grid offset, top-left corner |
sh |
affine shear (XY) |
x |
geotransform parameters, as per |
Note that xmin/xmax are centre_of_cell (of top-left cell) unlike the geotransform which is top-left corner_of_cell. The parameters are otherwise the same, but in a different order.
vector of parameters xres, yskew, xskew, yres, xmin, ymax
world vector, as per geo_world0()
geo_transform0
1 2 3 4 | geo_world0(px = c(1, -1), ul = c(0, 0))
(gt <- geo_transform0(px = c(1, -1), ul = c(0, 0)))
wf <- geotransform_to_world(gt)
world_to_geotransform(wf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.