Hot answers tagged

10 votes

Ogr2ogr: ERROR 1: PROJ: pj_obj_create: Cannot find proj.db

I set the PROJ_LIB environment variable to point to the PROJ.4 data directory (where proj.db lives) and this problem has been solved,hope that is useful to you.
user avatar
  • 101
9 votes

Ogr2ogr: ERROR 1: PROJ: pj_obj_create: Cannot find proj.db

Check your environment_variable: setx GDAL_DATA "C:\Program Files\GDAL\gdal-data" setx GDAL_DRIVER_PATH "C:\Program Files\GDAL\gdalplugins" setx PROJ_LIB "C:\Program Files\GDAL\projlib" setx ...
user avatar
5 votes
Accepted

Creating a subclass that inherits from an ArcPy superclass?

I don't think you can. If you dig into the arcpy source you'll find that arcpy.Describe essentially returns a wrapper around a non-python binary object (see line 369 in <install dir>\ArcGIS\Pro\...
user avatar
  • 53.3k
4 votes
Accepted

ArcPy import arcgiscripting

If you are using the ArcMap application rather than the ArcGIS Pro application of the ArcGIS Desktop product then I believe you will need to use the ArcPy that installs with ArcMap and that requires ...
user avatar
  • 63.9k
4 votes

Installing Fiona into cloned conda environment in ArcGIS Pro gives ImportError

I just struggled through this. ArcGIS Pro (v2.5) doesn't seem to support all of the dependencies for fiona v1.8.6, even though that is the recommended install version. If you downgrade fiona to 1.8....
user avatar
3 votes

`pyproj` initialization error in PyCharm but not in cmd?

The normal way to use conda is to activate an environment where proj is installed, which sets PROJ_LIB to the correct path. However, it's not always possible to run "activate", for instance from ...
user avatar
  • 40k
3 votes

Trouble importing Fiona in Python

I used pip instead, and it worked. pip install geopandas. I did this because geopandas installs fiona. I should have tried this before posting.
user avatar
  • 1,739
2 votes
Accepted

Bundling Conda environment in with .exe for ArcPy

To return to this question, I ended up giving up and configuring the users' computers myself so the script could run on double-click as a .py. As Vince said, it's a stubborn licensing issue with arcpy....
user avatar
  • 55
2 votes

GDAL installation on MAC OSX via conda fails, linked due to Libpoppler and font configuration

Got this error too when all my GIS related packages (geopandas, gdal, fiona) that all seem to rely on that libfontconfig randomnly broke. In terminal, I had to first install the fontconfig package ...
user avatar
  • 160
2 votes

Access QGIS API from Anaconda python environment using Conda-Forge

If those steps are exactly what you did the problem may be that you installed the package in the wrong environment. Prior to installing qgis (step 2) you have not activated the environment which means ...
user avatar
  • 110
2 votes
Accepted

Can't install Packages with Cloned ArcGIS Pro Python

Since you're on Windows 10, search for "Python Command Prompt". This will open a window with the current default ArcGIS Pro python environment activated. Pip and other python modules should ...
user avatar
  • 151
2 votes
Accepted

ipyleaflet with GEE in JupyterLab doesn't show layer

The EE Python API has been updated, breaking backwards compatibility. This is the way you get the tile URL these days: def GetTileLayerUrl(ee_image_object): map_id = ee.Image(ee_image_object)....
user avatar
  • 9,745
2 votes

Ogr2ogr: ERROR 1: PROJ: pj_obj_create: Cannot find proj.db

Add these commands to your code at the beginning. Your issue will be solved. import os os.environ['PROJ_LIB'] = 'C:\\Users\\Sai kiran\\anaconda3\\envs\\sai\\Library\\share\\proj' os.environ['...
user avatar
  • 166
1 vote
Accepted

`pyproj` initialization error in PyCharm but not in cmd?

The environmental variable PROJ_LIB needed to be set to the location of the files used by the proj library. In my case that was in the following directory: 'C:\\Users\\frankbr\\.conda\\envs\\...
user avatar
  • 1,044
1 vote

Ogr2ogr: ERROR 1: PROJ: pj_obj_create: Cannot find proj.db

To use GDAL and/or PROJ from conda, you need to activate the environment, which sets the necessary environment variables (including GDAL_DATA and PROJ_LIB). If you have conda on your path, it's ...
user avatar
  • 40k
1 vote

Access QGIS API from Anaconda python environment using Conda-Forge

Hopefully somebody who understands the internal processes better than me can provide an answer. You can add GDAL to your Anaconda installation, and use it this way for example: import gdal import ...
user avatar
  • 680
1 vote

Error while installing QGIS with conda

Only QGIS 2.18 is available for Linux via conda-forge and it requires Python 2.7. Try: conda create -c conda-forge -n qgisenv qgis You won't be able to install matplotlib though. I'm not sure ...
user avatar
  • 53.3k
1 vote
Accepted

import ARCSI as module in python

From the documentation: import arcsilib arcsilib.arcsirun.SomeArcsiTool(AnARCSIParamsObj)
user avatar
  • 53.3k
1 vote

Conda Forge or Conda Channel for GDAL on python2.7 and python3.x

Treat conda envs as disposable. If you have trouble installing gdal into an existing environment, ignore it and create a new env conda create -n mynew env gdal other packages etc... Never install ...
user avatar
  • 53.3k
1 vote
Accepted

ArcPy importing error after setting path?

I think the problem is in the Anaconda version that you are using. You should install Anaconda 2 (32 bit) not Anaconda 3 (32 bit). ArcGIS 10.4 works with python 2 which is 2.7 which is included in ...
user avatar
  • 36.5k
1 vote

GDAL conda install on Mac OS trouble

I've found that the dependency versions are a bit messed up. GDAL is relying on there being older versions of certain libraries, but newer ones are installed by default. I've managed to get it working ...
user avatar
  • 151

Only top scored, non community-wiki answers of a minimum length are eligible