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
    datadir.set_data_dir(proj_path)
    # print(datadir.get_data_dir.__doc__)



/ means the root of the current drive;

./ means the current directory;

../ means the parent of the current directory
star

Thu May 04 2023 13:52:40 GMT+0000 (Coordinated Universal Time) https://mavo.io/demos/svgpath/

#svg #path #vector
star

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

#pyproj #python #database #path
star

Sat Jul 02 2022 01:17:06 GMT+0000 (Coordinated Universal Time) https://www.google.com/search?q

#whatever #unix #linux #path
star

Fri Jun 25 2021 09:23:36 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/30845416/how-to-go-back-1-folder-level-with-dirname

#path #javascript #express

Save snippets that work with our extensions

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