Comments (3)
I think the assumption of "each feature has a single ID field" is pretty baked in. Of course that can be changed, but I'm not sure it's worth the complexity. Clearly you're familiar with the R package; can I ask your motivation for using the command line instead?
from exactextract.
Sometimes I'd like to use the command line in a shell script to automate processing steps. Now that you don't think the benefit is worth the complexity of changing the C++ code. I think the best way for such automation in shell scripts has two options,
- Choose a single ID field to be written by the
exactextract
command and then use some other command to join the output CSV with the original attribute table of the input polygon dataset. This may not be so straightforward sometimes since some common tools likeawk
,join
are not so robust with dealing with CSV files (e.g, values in one columns are strings with comma itself...), as I have experienced myself. But it can be done byawk
orjoin
. - Make a command line by wrapping the R function
exact_extract
in a R script to achieve such a function. Then call this R script in shell scripts. This may be an easier way to go.
These two options are prob. sufficient and better esp. if you think the complexity outweighs the benefits. I think it's okay to close this issue now.
from exactextract.
Implemented in c7d03c9
from exactextract.
Related Issues (20)
- Lots of NANs HOT 1
- Incorrect result with very narrow polygon HOT 1
- Minority, majority, and variety don't work with a thematic raster HOT 1
- Incorrect coverage fraction for invalid polygon
- Error compiling in macos - 'geos_c.h' not found HOT 14
- Typo in the requirements HOT 2
- Error in compilation HOT 2
- Histogram feature/tool HOT 1
- Support for LineStrings HOT 4
- Install/Make Error on Linux HOT 2
- Error: [names<-] incorrect number of names HOT 1
- Outputting the remapping information HOT 1
- Official Release? HOT 1
- Any thoughts on how to force compilation for x86_64 on macOS? HOT 3
- Output histogram as tuple-formatted string as separate column? HOT 2
- Missing Fraction Statistic HOT 1
- 'variety' metric only works when its added first from the command line HOT 2
- Installation error: implicit instantiation of undefined template HOT 1
- Migrate CI to GitHub actions
- Error raised when calling a raster with multiple data variables HOT 6
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.