Comments (5)
Looking at this project's setup.py I gathered that path that PROJ_DIR
is set to needs to have subfolders called 'lib' and 'include' so given where my proj.4 is installed that makes me think /usr
may be the proper path to set the variable. However I gave PROJ_DIR
that value and ran pip install -vvv pyproj
, but the output from pip was identical to when I had the variable set to /usr/share/proj
so I'm still not clear as to whether my proj.4 installation is being used
from pyproj.
There are two additional undocumented environment variables: PROJ_LIBDIR and PROJ_INCDIR.
PROJ_LIBDIR - this is the path PROJ_DIR + '/lib' and PROJ_DIR + '/lib64'
PROJ_INCDIR - this is the path PROJ_DIR + '/include'
If set in the environment, that setting will be used over the defaults.
If you want to see where pyproj data files are installed, print the variable: pyproj.pyproj_datadir
from pyproj.
Thanks for getting back to me. FWIW these are install locations of my proj.4 package:
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/proj.pc
/usr/lib/x86_64-linux-gnu/libproj.la
/usr/lib/x86_64-linux-gnu/libproj.a
/usr/include
/usr/include/org_proj4_PJ_Type.h
/usr/include/projects.h
/usr/include/org_proj4_PJ.h
/usr/include/geodesic.h
/usr/include/org_proj4_Projections.h
/usr/include/proj_api.h
/usr/share
/usr/share/doc
/usr/share/doc/libproj-dev
/usr/share/doc/libproj-dev/copyright
/usr/share/man
/usr/share/man/man3
/usr/share/man/man3/pj_init.3.gz
/usr/share/man/man3/geodesic.3.gz
/usr/lib/x86_64-linux-gnu/libproj.so
/usr/share/doc/libproj-dev/changelog.Debian.gz
/usr/share/doc/libproj-dev/NEWS.Debian.gz
/usr/share/man/man3/proj.3.gz
Do you have a recommendation as to how I should set the environment variables? It looks like setting PROJ_DIR to /usr
would be about right, but there is no lib64
directory on my system. Maybe set PROJ_DIR to /usr
and PROJ_LIBDIR to /usr/lib/x86_64-linux-gnu
?
For a previous install I had PROJ_DIR set to /usr/share/proj
and pyproj.data_dir
was set to /usr/share/proj/share/proj
from pyproj.
If you set PROJ_DIR to /usr
for the library portion it would default to adding the directories /usr/lib
and /usr/lib64
to search for the library.
Actually for Ubuntu 16.04 if you are using a default installation of PROJ.4, I'd recommend installing the Ubuntu repository package for pyproj.
$ apt install pyproj
Probably want to install it with administrative privileges, (sudo).
The Debian GIS maintainer, Bas, keeps on top of packaging.
from pyproj.
I don't want to install this to my system python, so that solution isn't ideal for me. Thanks for your responses though, it sounds like pointing PROJ_DIR to /usr may be the correct setting, I'm going to go ahead and close the ticket
from pyproj.
Related Issues (20)
- Invert lat lon "Transformer" HOT 1
- Internal Proj Error: proj_create: unrecognized format / unknown name HOT 4
- Inverted x/y for transformation from WSG84 to LV95 (EPSG:2056) HOT 3
- muslinux wheel missing HOT 1
- test_azimuthal_equidistant fails with PROJ 9.4.0 HOT 1
- test failure in test_crs_cf.py HOT 2
- Add proj_query_geodetic_crs_from_datum HOT 2
- 3.6.1: pytest fails in `test/crs/test_crs_cf.py::test_azimuthal_equidistant` unit HOT 1
- A question about pyproj/_datadir.pyx HOT 2
- geometry_area_perimeter limitations not documented HOT 1
- Calculate area of arbitrary polygon on Earth's surface HOT 4
- Interrupted Mollweide gives wrong result on inverse projections of some lat/lons. HOT 1
- test_datum__from_epsg fails with PROJ 9.4.1 HOT 4
- Proj4 export from a bound CRS object fails HOT 4
- Antipodes don't match when calculated numerically HOT 7
- Bad_alloc with pyroj import in QGIS plugin
- Conversion of array to scalar when transforming 1 element arrays leads to DeprecationWarning HOT 3
- Small memory leak HOT 3
- WHL: Window x64 builds failing HOT 7
- MGA94 and MGA2020 unexpected transformation HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyproj.