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?

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Nov 17, 2022 at 12:25
2
  • 1
    Where is the code ? Commented Nov 17, 2022 at 12:38
  • Yes, post the code or at least the link to the code. Commented 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.

answered Nov 17, 2022 at 14:50

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.