Skip to content

Instantly share code, notes, and snippets.

View deppen8's full-sized avatar

Jacob Deppen deppen8

View GitHub Profile
@deppen8
deppen8 / qgis_pixel_coordinates.py
Last active May 28, 2024 14:58
Get pixel coordinates on-click in QGIS
"""
Get pixel coordinates (not geographic coordinates) of a location in a raster.
Run the script to activate the tool.
Click a location to see row, column printed to Python console.
Click any other tool to deactivate.
Original source: https://gis.stackexchange.com/a/261538/67365
Modified slightly from the original for compatibility with Python 3 + QGIS 3 - Hannover
@deppen8
deppen8 / documenting-your-code-links.md
Last active December 18, 2022 19:43
Links in the `documenting-your-code` tutorial