Skip to content

gdalUtils and gdal 3.0.2 : ERROR 1: PROJ: proj_create_from_wkt: Cannot find proj.db  #24

@mgageo

Description

@mgageo

Hello,
I use gdaUtils with the gdal version from QGIS : https://www.qgis.org/fr/site/forusers/download.html
https://qgis.org/downloads/QGIS-OSGeo4W-3.10.0-2-Setup-x86_64.exe

On a command like

ogr2ogr('rgdal.geojson','rgdal.json',t_srs="EPSG:2154",verbose=TRUE)
Checking gdal_installation...
Scanning for GDAL installations...
Checking the gdalUtils_gdalPath option...
GDAL version 3.0.2
GDAL command being used: "C:\Program Files\QGIS 3.10\bin\ogr2ogr.exe" -t_srs "EPSG:2154" "rgdal.json" "rgdal.geojson"
[1] "ERROR 1: PROJ: proj_create_from_wkt: Cannot find proj.db" "ERROR 1: PROJ: proj_create_from_wkt: Cannot find proj.db"
[3] "ERROR 1: PROJ: proj_create_from_database: Cannot find proj.db" "ERROR 1: Failed to process SRS definition: EPSG:2154"

I have an other version of gdal from http://download.gisinternals.com/sdk/downloads/release-1911-x64-gdal-3-0-mapserver-7-4.zip in the directory d:\gdal30

I replace the system call "system(cmde, intern = TRUE)" by a small script, cf https://framagit.org/mgageo/osmdata/blob/master/scripts/ogr2ogr.R and it's good

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions