0

I'm creating a script to analyse landcover within an AOI which I'll turn into a geoprocessing tool. I want to use the ESA 2022 landcover and download from within the tool using the code provided on the ESA data access page.

I'm aware I need to install geopandas into the conda environment most recommendations seem to suggest doing this in the Python Command Prompt. However, eventually, this tool needs to stand alone and be used by non-techincal staff to carry out the landcover analysis, i.e. just run from the geoprocessing pane.

Is there a way I can include the installation of geopandas to allow me to download relevant landcover data WITHIN the script for the geoprocessing tool I'm creating so no additional steps are required from those using the tool?

2
  • 1
    Where is the code ?
    – gene
    Nov 17, 2022 at 12:38
  • Yes, post the code or at least the link to the code.
    – GBG
    Nov 17, 2022 at 16:30

1 Answer 1

0

Simply - the answer is probably NO. If your dependency (geopandas) was small, you might be able to simply include a couple extra Python files with your tool. To my knowledge, this is a larger package, and best installed via supported ways (conda, pip, etc), meaning it should be installed and ready within the Python environment on the machine of the person running the tool, NOT included with the tool itself.

Personally, I'd do an import check for the module, and if NOT available, print out some basic instructions on how to install/get the package.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.