Timeline for Write information on file using exiftool_call in R
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 17, 2018 at 2:06 | vote | accept | Perro | ||
Sep 16, 2018 at 19:17 | comment | added | Spacedman |
r=raster("foo.tif"); extent(r)=c(xmin, xmax, ymin, ymax)); writeRaster(r,"bar.tif") and now bar.tif is a geoTiff with spatial coordinates. Should also add a projection...
|
|
Sep 16, 2018 at 18:05 | comment | added | Perro |
I see what you are saying. One more thing, so is there a way to set coordinates using the raster package? I get the impression that is what you are referring to on your original answer (I might be mistaken).
|
|
Sep 16, 2018 at 17:54 | comment | added | Spacedman | If you want to use exiftool_call to do this you need to set the tags specified here: sno.phy.queensu.ca/~phil/exiftool/TagNames/GeoTiff.html - I don't quite understand " GeoTIFF tags are not writable individually, but they may be copied en mass via the block tags GeoTiffDirectory" but the docs for exiftool should explain it somewhere. | |
Sep 16, 2018 at 16:45 | comment | added | Perro |
Thank you so much for your answer @Spacedman; however, I have a question regarding the last paragraph of your message. After creating a GeoTIFF file, setting up the coordinates, projection, etc, can the missing coordinates be written using exifttool_call or is there other way?
|
|
Sep 16, 2018 at 11:09 | history | answered | Spacedman | CC BY-SA 4.0 |