Comments (3)
This looks related to isciences/exactextractr#79. I don't have access to a machine to troubleshoot it.
from exactextract.
I did a little more research and figured out that I can force x86_64 using this incantation:
cmake \
-DCMAKE_OSX_ARCHITECTURES=x86_64 \
-DCMAKE_BUILD_TYPE=Release \
..
The build completes but now I get this:
$ ./exactextract
dyld[57743]: Library not loaded: /usr/local/pgsql-12/lib/libpq.5.dylib
Referenced from: <7E2C5AE7-94FF-311B-B475-92F15948B296> /Library/Frameworks/GDAL.framework/Versions/3.1/GDAL
Reason: tried: '/libpq.5.dylib' (no such file), '/usr/local/pgsql-12/lib/libpq.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/pgsql-12/lib/libpq.5.dylib' (no such file), '/usr/local/pgsql-12/lib/libpq.5.dylib' (no such file), '/usr/local/lib/libpq.5.dylib' (no such file), '/usr/lib/libpq.5.dylib' (no such file, not in dyld cache)
Abort trap: 6
The only usable copies of the dylib I have are installed as part of arm64 homebrew:
/opt/homebrew/Cellar/libpq/15.4/lib/libpq.5.dylib
/opt/homebrew/Cellar/postgresql@14/14.9/lib/postgresql@14/libpq.5.dylib
from exactextract.
Oh, I see what happened! I had old versions of GEOS and GDAL in /Library/Frameworks
. I removed those, re-ran cmake WITHOUT specifying CMAKE_OSX_ARCHITECTURES
and it picked up the homebrew versions I have installed and succeeded in building an arm64 version. Awesome!
$ ./exactextract --help
Zonal statistics using exactextract: version 0.1.0 (f14e007)
Usage: ./exactextract [OPTIONS]
Options:
-h,--help Print this help message and exit
-p,--polygons TEXT REQUIRED polygon dataset
-r,--raster TEXT ... REQUIRED
raster dataset
-f,--fid TEXT REQUIRED id from polygon dataset to retain in output
-o,--output TEXT REQUIRED output filename
-s,--stat TEXT ... REQUIRED statistics
--max-cells UINT=30 maximum number of raster cells to read in memory at once, in millions
--strategy TEXT=feature-sequential
processing strategy
--id-type TEXT override type of id field in output
--id-name TEXT override name of id field in output
--progress
--config TEXT Read an ini file
from exactextract.
Related Issues (20)
- Frac might return also the nodata value inside a polygon HOT 9
- When use frac, the universe of pixels per each class is near to 1 but not exactly 1 HOT 1
- `int32` raster causes exception HOT 6
- error using Docker HOT 8
- Support circular statistics
- Check input layer CRS HOT 1
- Error when using `exact_extract` with any extra arguments to statistics HOT 6
- Migrate exactextractr into this repository
- Compilation error traced to `set` function override in `gdal_feature`
- Error in `test_stats` HOT 1
- Add multithreading capabilities
- Build fails on Ubuntu Noble
- Fraction output for python version HOT 3
- How to avoid the INSERT 0 1 in the cli output HOT 4
- exactextract Python, no coverage_fraction? HOT 2
- problem with python, error: Never get here. HOT 13
- Error with 'make' command HOT 1
- Strange behavior in computation of 'frac', 'values', and 'coverage' stats with Python binding HOT 6
- Add operation to get per-category count
- RasterSequentialProcessor: subdivide based on block size
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 exactextract.