[R-sig-Geo] tpk files

Shaun Walbridge SW@|br|dge @end|ng |rom e@r|@com
Thu Apr 11 17:52:32 CEST 2019


I think the issue is, most GDAL installations don't have the Geopackage raster driver [1] installed by default, which lists "Needs libsqlite3 (and any or all of PNG, JPEG, WEBP drivers)" for it to be available. At least on my Homebrew installation of GDAL, this driver wasn't built out of the box. If you rebuild GDAL with this additional driver, or find a prebuilt binary which has it, it should be able to open. A simple test is if `gdalinfo EMU.gpkg` returns information about the dataset outside of R.

1. https://urldefense.proofpoint.com/v2/url?u=https-3A__www.gdal.org_drv-5Fgeopackage-5Fraster.html&d=DwIGaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=fCPRb7QX-vd5bnO9gIJHCiX852SVUtyYX--xtCKtpfk&m=p5ULiF5de1gKZBP-IzWbMO9Pe5LFzv9uaZ5VJYnWw1Y&s=d6xaKGlN0jpd8mBdjKXAhzst7N3Bgo43BvJlLnDSngk&e=

On 4/11/19, 11:41 AM, "Barry Rowlingson" <b.rowlingson using gmail.com> wrote:

    What did you try? The instructions at the top say:
    
    "Download 3.3GB tile package and rename extension from .tpk to .zip.
    Extract to get EMU.gpkg"
    
    If that's a valid GeoPackage then `sf` should be able to read it. Not sure
    what might be in the geopackage though, "tile package" sounds like rasters,
    but GeoPackages are generally vector...
    
    I'll try in five minutes when all 3.3Gb have downloaded....
    
    On Thu, Apr 11, 2019 at 3:37 PM Marta Rufino <marta.m.rufino using gmail.com>
    wrote:
    
    > Hi,
    >
    > I would like to open (and use) a 'tpk' file from arcgis in r.
    > For example:
    >
    > https://esri.maps.arcgis.com/home/item.html?id=24885cd6bd9544f5a8e15d0bf40f67d6
    >
    > I tried raster and sf package, but no luck.
    >
    > Any ideia if we can do this in r?
    >
    > Thank you very much in advance,
    >
    > Best wishes,
    > M.
    >
    >         [[alternative HTML version deleted]]
    >
    > _______________________________________________
    > R-sig-Geo mailing list
    > R-sig-Geo using r-project.org
    > https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_r-2Dsig-2Dgeo&d=DwICAg&c=n6-cguzQvX_tUIrZOS_4Og&r=YFaRLkcUCdDkLrpTbNOUV9J1CwYBCTMwgm5tdQkRSm4&m=nytIIxO936Ls0xrd3zZkBd1WNjQB3DwlOK88GErq19M&s=uahwJjXmsZFnUVQXvkICr3EfAbNjOuaXl6iwziIexTM&e=
    >
    
    	[[alternative HTML version deleted]]
    
    _______________________________________________
    R-sig-Geo mailing list
    R-sig-Geo using r-project.org
    https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_r-2Dsig-2Dgeo&d=DwICAg&c=n6-cguzQvX_tUIrZOS_4Og&r=YFaRLkcUCdDkLrpTbNOUV9J1CwYBCTMwgm5tdQkRSm4&m=nytIIxO936Ls0xrd3zZkBd1WNjQB3DwlOK88GErq19M&s=uahwJjXmsZFnUVQXvkICr3EfAbNjOuaXl6iwziIexTM&e=
    




More information about the R-sig-Geo mailing list