In rgdal, the available drivers are found with ogrDrivers(), which you
may check. Which platform is this and if a source install, how was GDAL
installed? Layers in vector data sources (dsn) are found with
where dsn is the (path to and) GPKG name.
ogrListLayers("./Shapes/trspixNaratiUTM44_alt_UTM44.gpkg") may show
several layers (but should choose the first by default when reading). are
there any other messages?
> please take a look at sf::st_layers(dsn), this gives you the name of, and
> basic information on, the layers found in the specific file/folder (dsn).
> Ákos Bede-Fazekas
> 2021.04.13. 8:35 keltezéssel, Patrick Giraudoux írta:
>> Dear listers,
>> I did not find the way to open a geopackage using rgdal::readOGR.
>> The package name is 'trspixNarati_alt_UTM44.gpkg' (with two companion
>> files: 'trspixNarati_alt_UTM44.gpkg-shm' and
>> 'trspixNarati_alt_UTM44.gpkg-wal') stored in a folder 'Shapes'
>> The corresponding object should be a SpatialPointsDataFrame.
>> I have tried several combinations (a bit blind) with
>> with no success...
>> This link https://jsta.github.io/2016/07/14/geopackage-r.html gives
>> indications on the how to to it, but supposes that one knows a layer
>> name (which is not my case)
>> Any idea about the syntax of this driver ?
>> [[alternative HTML version deleted]]
>> R-sig-Geo mailing list
>> [hidden email] >> https://stat.ethz.ch/mailman/listinfo/r-sig-geo >
> R-sig-Geo mailing list
> [hidden email] > https://stat.ethz.ch/mailman/listinfo/r-sig-geo >