GithubHelp home page GithubHelp logo

Comments (3)

dbaston avatar dbaston commented on August 24, 2024

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.

zhanlilz avatar zhanlilz commented on August 24, 2024

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,

  1. 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 like awk, 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 by awk or join.
  2. 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.

dbaston avatar dbaston commented on August 24, 2024

Implemented in c7d03c9

from exactextract.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.