PROJ / GDAL data paths — GSTPy documentation

# PROJ / GDAL data paths

Some advanced client side functions require a correct GDAL/PROJ data file setup. We deploy the required data with GSTPy, though some setup is required by the user.

If you installed GSTPy under C:\Users\Max\Documents\GiGa infosystems\GSTPy the PROJ data directory is C:\Users\Max\Documents\GiGa infosystems\GSTPy\share\proj and the GDAL data directory is C:\Users\Max\Documents\GiGa infosystems\GSTPy\share\gdal.

Environment variable

Set the PROJ_LIB to the PROJ data directory. Set GDAL_DATA to the GDAL data directory.

Local to a Python script

    import GSTPy
    GSTPy.NetworkInterface.set_proj_data_path(R"C:\Users\Max\Documents\GiGa infosystems\GSTPy\share\proj")
    GSTPy.NetworkInterface.set_gdal_data_path(R"C:\Users\Max\Documents\GiGa infosystems\GSTPy\share\gdal")