Thank you for your interest in contributing to the QGIS Earth Engine Plugin! We appreciate your support and contributions.
Follow these steps to set up the plugin locally for development:
-
Clone the repository:
git clone https://github.com/gee-community/qgis-earthengine-plugin.git cd qgis-earthengine-plugin
-
Install dependencies and set up the QGIS python environment using
paver
:paver setup
-
Create a symlink of this project into the QGIS plugin directory:
paver install
-
Open QGIS and enable the plugin via the plugin manager. Verify that the custom
about
message is displayed.
The plugin can be debugged within Visual Studio Code with the help of the debugvs QGIS plugin.
Note
At time of writing, an outstanding PR is required to successfully debug QGIS. This fix can manually be applied by copying the __init__.py
file to your local installation of the debugvs
plugin.
Example MacOSX:
curl https://raw.githubusercontent.com/lmotta/debug_vs_plugin/f1f28d72eb0221581b51c7dd1e4d0435db991eb8/__init__.py >> ~/Library/Application\ Support/QGIS/QGIS3/profiles/default/python/plugins/debug_vs/__init__.py
- Within QGIS:
- Start “Enable Debug for Visual Studio Code” plugin.
- Within the
qgis-earthengine-plugin
codebase opened within VSCode:- In Debug tools, launch the Run and Debug for “Python: Remote Attach”
- In the codebase, add breakpoints where desired.
- Within QGIS:
- Run EarthEngine QGIS plugin to trigger code at desired breakpoints.
-
Ensure your contribution addresses an existing issue or discussion topic in the repository. If it does not, please open an issue to discuss your idea before starting.
-
Create a new branch for your changes:
git checkout -b feature/your-feature-name
-
Make your changes and ensure they follow the project’s coding standards.
-
Test your changes locally including reinstalling new dependencies for the QGIS environment with:
paver setup
-
Commit your changes with a clear and descriptive message:
git commit -m "Add a clear description of your changes"
-
Push your changes to your forked repository:
git push origin feature/your-feature-name
-
Open a Pull Request (PR) against the main repository. Ensure your PR description includes the problem it solves, a summary of changes, and any additional notes.
- Follow Python’s PEP 8 guidelines for code style.
- Ensure that your code is well-documented with comments and docstrings.
- Use descriptive variable and function names.
- Test your changes thoroughly before submitting a PR.
- If possible, add tests to cover your changes and ensure they pass.
If you have any questions or need assistance, feel free to reach out by creating an issue in the repository or contacting the original author: [email protected].
Thank you for contributing to the QGIS Earth Engine Plugin!