Snippets Collections
'UserWarning: pyproj unable to set database path.' <- This happens with multiple pyproj installations on the same machine, which is quite common, as almost every geo software depends on it.

How to fix:
First, find all copies of 'proj.db' on the machine. Get the path for the correct one, which is probably something like 'C:/Users/Clemens Berteld/.conda/pkgs/proj-8.2.0-h1cfcee9_0/Library/share/proj'. Definitively not a QGIS or PostGIS path.

Then, use it as a parameter for this function and run it at the top of your code:

def set_pyproj_path(proj_path):
    from pyproj import datadir
    # print(datadir.get_data_dir.__doc__)

/ means the root of the current drive;

./ means the current directory;

../ means the parent of the current directory

Thu May 04 2023 13:52:40 GMT+0000 (Coordinated Universal Time)

#svg #path #vector

Thu Aug 18 2022 07:19:21 GMT+0000 (Coordinated Universal Time)

#pyproj #python #database #path

Sat Jul 02 2022 01:17:06 GMT+0000 (Coordinated Universal Time)

#whatever #unix #linux #path

Fri Jun 25 2021 09:23:36 GMT+0000 (Coordinated Universal Time)

#path #javascript #express

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension