r-spatial.org icon indicating copy to clipboard operation
r-spatial.org copied to clipboard

Tutorial on reading and writing data in sf

Open kadyb opened this issue 2 years ago • 4 comments

Let me know if you have any comments and suggestions.

kadyb avatar Dec 09 '23 12:12 kadyb

Hi @edzer, could you look into this if you find time?

kadyb avatar Jan 11 '24 11:01 kadyb

things are a bit hectic a.t.m., will get back soon I hope!

edzer avatar Jan 13 '24 22:01 edzer

Hello, any news?

kadyb avatar Apr 05 '24 12:04 kadyb

I have troubles rendering it locally, will try to fix it soon

edzer avatar Apr 12 '24 19:04 edzer

Hi @edzer, do you have time to finalize it? If you are busy or have other plans, please let me know. I asked Jakub and Robin and it would be possible to publish it on their blog if needed.

kadyb avatar Jun 26 '24 15:06 kadyb

I really should migrate this blog to quarto, I no longer have good tools to check things locally before committing / merging. Let's see how this comes out!

edzer avatar Jun 26 '24 15:06 edzer

Thanks! The only problem I see is missing images. And for some reason, the first-level headers are smaller than the second-level headers (e.g. "Vector loading" and "Shapefile (.shp)"), but this is not super important.

kadyb avatar Jun 26 '24 16:06 kadyb

One more thing :smiley: Didn't you render this script twice? There is warning that the file data/capitals.shz already exists:

write_sf(capitals, "data/capitals.shz", driver = "ESRI Shapefile")

## Warning in CPL_write_ogr(obj, dsn, layer, driver,
## as.character(dataset_options), : GDAL Error 6: .shz does not support layer
## deletion

kadyb avatar Jun 26 '24 16:06 kadyb

the warning is now gone. Now the images...

edzer avatar Jun 26 '24 20:06 edzer

OK like this, or do you want me to update the date?

edzer avatar Jun 26 '24 20:06 edzer

Great! Ok, you can update the date.

kadyb avatar Jun 26 '24 20:06 kadyb