-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
georeferenced output #914
Comments
Related discussion: #383 |
Thanks. Avenza is an app for mobile use of geo-referenced PDFs (including in a disconnected back-country hiking use case.) They are an end-user platform for US Bureau of Land Management final products https://www.blm.gov/maps/georeferenced-PDFs (expand "How to download and use"). Right now those two major players might be georeferencing maps manually, and may be locked into an old ArcGIS workflow: Avenza-ready Google Earth imagery georeferenced PDF in QGIS. (QGIS is a GIS system that cannot compete with ArcGIS for feature-completeness.) Given this technological state, tmap georeferenced output would be a powerful and potentially widely-consumed application of the R sf + tmap architecture. |
Thx for this input @potrykus Just tested, and it is already possible in
So now the question is how replace the sf plotting mechanism with tmap. Any ideas @edzer or @tim-salabim ? If someone could help me with the |
|
Can I use tm = tm_shape(World) + tm_poygons()
tmap_save(tm, "World.pdf")
#within tmap_save:
pdf(file)
print(tm)
dev.off()
sf::st_write(?, "World.pdf", offset = , scale = , crs = ) Is so, do you know via which of its arguments these can be passed on ( |
I think |
I cannot add much here, as |
Oh, yes, and there's the raster driver too: https://gdal.org/en/latest/drivers/raster/pdf.html#raster-pdf |
Yes, but if I understand that correctly, outpu can either be RGB(A) or not. In case it's not I guess it'll be greyscale? |
tmap produces PDFs wih clean vector data. Shouldn't tmap automatically georeference that output - i.e. make its output geo-enabled? Here is a python overview: https://gis.stackexchange.com/questions/49646/is-it-possible-to-georeference-an-existing-un-georeferenced-pdf. This is what I found for the R raster package: https://rpubs.com/Rubio-Polania/1123497.
The text was updated successfully, but these errors were encountered: