Overview
Kentucky STAC is the QGIS successor to two ArcGIS Pro add-ins — kyfromabove-stac-addin
(imagery & elevation) and kylidar-addin (LiDAR) — merged into a single tabbed dock panel.
The plugin adds one dock, Kentucky STAC, with two tabs: Imagery / DEM and LiDAR Pointcloud. Both work the same way: set an area of interest, pick one or more collections, search, then add results to the map, download them, or export them for use outside QGIS.
Installation
The plugin targets QGIS's own bundled Python, GDAL and PDAL — no separate package manager or virtual environment is involved.
Requirements
- QGIS 3.34 or later; the 3.44 LTR, installed via OSGeo4W, is the build it is developed on.
- QGIS 4 (Qt6) is supported too: search, streaming, downloads, mosaics, Virtual Point Clouds and clipping were all exercised on 4.2.3, and the plugin is listed for it in the plugin repository.
- PDAL, bundled with OSGeo4W, is required for point cloud AOI clipping and for filtering downloaded point clouds by class or return, and is already on
PATHinside a normal OSGeo4W install.
Install the plugin
From the QGIS plugin repository (recommended). Open Plugins → Manage and Install Plugins and search for Kentucky STAC under All, then click Install Plugin. It is also at plugins.qgis.org/plugins/kentucky_stac, and each version’s zip is on the GitHub Releases page (Install from ZIP works with it too).
From source, for development. The source is on GitHub at
ianhorn/kentucky-stac
(git clone https://github.com/ianhorn/kentucky-stac.git); the plugin is the kentucky_stac/ folder.
Copy (or symlink/junction) the kentucky_stac/ folder into your QGIS
profile's plugin directory:
%APPDATA%\QGIS\QGIS3\profiles\default\python\plugins\kentucky_stac
Either way, enable it under Plugins → Manage and Install Plugins → Installed and open it from Plugins → Kentucky STAC (or the toolbar icon). A junction to your working copy means Uninstall or Install from ZIP in the Plugin Manager would delete the working copy, so don’t use those while developing. The Plugin Reloader plugin picks up code changes without restarting QGIS.
Area of interest
Every search is scoped to an area of interest (AOI), set with the tools at the top of the dock, shared by both tabs.
Point / Line / Polygon
Click to place vertices; right-click to finish a line or polygon (a point finishes on the first click). Backspace undoes the last vertex, Esc cancels.
Select features
Click, or drag a box over, existing vector features on the map — their combined outline becomes the AOI.
Current extent
Uses whatever area the map canvas is currently showing as a rectangular AOI.
Clear
Clears the AOI and any feature selection.
Each drawing/selection tool is one-shot: once it successfully sets an AOI, it deactivates itself (its toolbar button un-highlights) rather than staying armed, since a new AOI always replaces the old one outright. Clear and Current extent also release a tool that was armed but never used.
Over the antimeridian. An AOI near the edge of the world map can run past 180°. It is cut there and searched as two parts, one on each side (as GeoJSON asks for a shape over the antimeridian), so a search over eastern New Zealand, Fiji or the Aleutians finds the tiles there and not tiles on the other side of the world. Result footprints and tiles over the antimeridian are drawn at both edges of the map, and Zoom to collection takes the short way across.
Searching
Each tab lists the collections available for its kind of data (imagery/DEM phases, or LiDAR phases) as a checklist.
- Collections start unchecked — pick one or more before searching.
- Select All / Clear Selection toggle every collection at once.
- Zoom to collection (under Reload) zooms the map to the area the ticked collection(s) cover, as their catalog states it; it is grayed out when nothing is ticked or the catalog gives no area.
- Search area of interest runs the STAC search, scoped to the checked collections and the current AOI.
Filters
The collapsed Filters section above the search button narrows a search; its header shows how many are active, and Reset filters clears them all. Sort and Max tiles sit on the same row as the Filters header, so they are always visible.
- From / To — only tiles captured in that date range (the end day is included).
- Max cloud cover — imagery tabs only, starting at 10%. Tiles that report no cloud cover (radar, elevation, aerial imagery) are kept. Some servers (Earth Search, for one) can only apply this strictly, which also hides tiles without cloud data; the plugin tells you when that happens.
- Sort — by capture date, newest or oldest first. With more matches than the limit, “Newest first” keeps the latest. A server that can’t sort is sorted here instead.
- Max tiles — the most tiles fetched per source (default 20; raise it to see more of a big result).
Large catalogs such as Sentinel-2 are much faster with a date range. If a server can’t return a big page, the plugin retries with smaller pages automatically.
Other STAC APIs (experimental)
Besides the built-in KyFromAbove catalog, the dock can search any public STAC API — picked from STAC Index or typed in by URL.
- Sources... (above the tabs) opens the source list. Choose a catalog from the STAC Index dropdown (which fills in a name and URL), or type an API base URL yourself. The list starts with KyFromAbove, then Microsoft Planetary Computer, then the rest of STAC Index A–Z.
- Add searches the new API alongside the current sources; Replace all sources searches only it. Picking KyFromAbove from the dropdown is the way back to the default.
- Another source's collections are labeled
Title · Source namein the checklist and in the results. While any source other than KyFromAbove is active, the two tabs are renamed Raster and Point Cloud. Raster has the imagery/DEM actions and Point Cloud has the same actions as the LiDAR tab (streaming, download, Virtual Point Clouds with their options, clipping to the AOI, Export as script). Another source’s collections are listed on both tabs, since they can’t be classified reliably: pick a point cloud collection on Point Cloud, anything else on Raster. With KyFromAbove alone the tabs are called Imagery / DEM and LiDAR Pointcloud, and its own collections stay on their matching tab. - Each source loads and searches independently: an unreachable API is reported, but doesn't stop the others.
- The source list is remembered between QGIS sessions.
- If an API or its files need a login, set one with Login; see Sources that need a login.
- Use the API’s base URL, the one that answers
/collections, not its browser documentation page (for examplehttps://landsatlook.usgs.gov/stac-server, not.../stac-server/api.html). - Some catalogs list tiles whose files need a login, such as USGS Landsat Look, whose files redirect to a USGS sign-in page. The plugin can’t sign in, so those tiles can’t be streamed or downloaded; use an open copy of the data instead (Landsat is also on Microsoft Planetary Computer).
Other APIs implement STAC differently, so thumbnails, adding to the map, or downloads may not work for
every one. Files at s3:// addresses (common outside KyFromAbove) are handled for you:
public ones are downloaded and streamed through their https address. Files on Azure Blob Storage, which is
how Microsoft Planetary Computer serves its assets, are signed automatically with a free SAS token from the
Planetary Computer’s token service (cached until shortly before it expires). Private and requester-pays buckets
(e.g. NAIP on Earth Search) need your own AWS credentials, set as the AWS_ACCESS_KEY_ID /
AWS_SECRET_ACCESS_KEY environment variables or in ~/.aws/credentials
(restart QGIS after setting them). With credentials found, files are read through GDAL’s signed S3
access, and for requester-pays buckets the transfer charges go to your AWS account. Add as server mosaic uses KyFromAbove’s titiler-pgstac server for KyFromAbove tiles. For
tiles from another source the button stays grayed out until you have brought your own titiler: set it under
Sources... → Tile server... (hover the button to see which source needs one). If you select tiles from
several sources, the ones without a tile server are left out. This is experimental.
Two kinds of server work, and the plugin works out which yours is:
- titiler-pgstac connected to that API’s catalog — one mosaic layer per collection.
- A plain titiler — one layer per tile (up to 50 at a time), each reading the tile’s own file. No catalog connection needed.
The server must be able to read the files: public https is fine; s3:// files need the server to have its own
AWS access. The dialog’s i button explains this.
Sources that need a login
Some APIs, and many of the data files they point to, refuse anonymous requests: a private catalog, an Earthdata or USGS account, a private S3 bucket. A source can carry one QGIS authentication configuration, which the plugin then uses for that source’s API calls and for reading and downloading its files.
Set it up
- Open Sources…. For a source you are adding, use the Login row; for one already in the list, select it and press Login….
- Pick an existing configuration from QGIS’s own selector, or press its green + to create one (QGIS asks for its master password the first time). The same configurations are managed under Settings → Options → Authentication.
- The source shows (login set) in the list and its collections reload with the login.
Which kind of configuration
| You have | Use |
|---|---|
| An API key or token sent in a header | API Header (for a bearer token: header Authorization, value Bearer …) |
| A user name and password | Basic |
| A single sign-on login | OAuth2, set up in QGIS in the usual way |
AWS keys for an s3:// bucket | AWS S3 (a Basic configuration holding the access key ID and secret also works) |
Adding S3 credentials
Files at an s3:// address need an access key and a secret key. Copernicus Data Space (Sentinel-2) is the usual case; a private
Amazon bucket is another. You enter the pair once, in QGIS, and attach it to the source.
- Get the keys. For Copernicus, sign in to your free Copernicus Data Space account and create S3 access keys there. You get an access key and a secret key; the secret is shown only once, so copy it when it appears.
- In the plugin, open Sources…, select the source in the Active sources list (for example Super-Resolved Sentinel-2 2.5m STAC API or Copernicus Data Space) and press Login….
- In the Login for … window press the green + beside the selector. QGIS asks for its master password the first time.
- In Add or Edit Authentication Configuration:
- Name: anything you like, such as
Copernicus S3. - Set the type (the drop-down under Resource) to AWS S3.
- Username: your access key.
- Password: your secret key.
- Region:
defaultfor Copernicus. If a download is refused with a message about the signature not matching, tryus-east-1. For an Amazon bucket, use that bucket’s region.
- Name: anything you like, such as
- Back in the Login for … window the new configuration is selected. Press OK. The source now shows (login set) in the list.
The login is used for that source’s s3:// files only, and goes only to the bucket they are in. The keys stay in QGIS’s encrypted Authentication database;
the plugin keeps just the configuration’s id. To change or remove the keys, edit the configuration under Settings → Options → Authentication, or choose
No Authentication in the Login for … window. A Basic configuration (user name = access key, password = secret key) also works.
If it doesn’t work: a Not Found on a Copernicus address, or a message that the files need your S3 keys, means no login is set on that source. Access denied means the keys are wrong, expired or for a different service: create a new pair and edit the configuration. Only Copernicus’s S3 service and Amazon S3 are supported; keys for another S3-compatible service can’t be used yet.
Copernicus Data Space (Sentinel-2 files and products)
With your S3 keys set as the source’s login (see Adding S3 credentials):
- The band files of the Copernicus catalog (
s3://eodata/…) can be added to the map, used in band combinations and downloaded. The plugin sends them to Copernicus’s own S3 address, not Amazon’s. - A catalog that offers the whole product (a
.SAFE, for example the Full SAFE product of the Super-Resolved Sentinel-2 API) can be downloaded: a product is a folder of a hundred or so files, so the plugin lists it and downloads it file by file into a folder with the product’s name, after asking you to confirm the number of files and the total size. Files already there are skipped, so an interrupted download can be run again. - Without the keys, a Copernicus download says it needs them instead of only reporting “Not Found”.
A catalog’s order link is not a file. The Super-Resolved Sentinel-2 API’s sr asset, for instance, is a request that spends credits on your account
with that service and returns the 2.5 m imagery; the plugin does not send it.
Where the login goes
- It goes with the plugin’s own requests to that source: collections, searches, thumbnails, file sizes and downloads.
- For reading files with GDAL (adding to the map, band combinations, indices) it is given to GDAL for that file’s own host or bucket only, so another site never receives it. Passwords and keys stay in QGIS’s encrypted Authentication database; the plugin keeps just the configuration’s id.
- A refused request says so: a login was sent; check that it is the right one, or this source may need a login when none was set.
Point clouds behind a login can be downloaded but not streamed. QGIS’s point cloud reader has no way to send a login (tested with header and basic logins on QGIS 3.44 and 4.2), so Add selected to map and Add selected as Virtual Point Cloud say so for such a tile and leave it out; Download selected… sends the login, and the downloaded file can then be added. Rasters, the catalog requests, file sizes and downloads do use the login (checked against a server that demands a Bearer header and one that demands basic authentication).
Not covered yet: certificate (PKI) configurations for reading files.
Credentials found in the environment or ~/.aws/credentials are still used for s3:// files without any setting, as before.
Results list
Each matching tile is shown as a card: a checkbox, the tile id, collection, capture date, file size (once known), coordinate reference system, and — for LiDAR — its point count, next to a thumbnail preview.
Hover for the raw JSON. Rest the mouse on a tile for half a second and a card opens beside the panel with that tile’s STAC item exactly as the catalog returned it: properties, assets, links. It stays open while the mouse is over the tile or the card, so you can scroll it, select and copy text, and click any URL.
Two buttons at the top left of the card choose how to read it: JSON (the default) is the item exactly as the catalog returned it; HTML is a friendlier page with the tile’s properties in a table, its assets with size, type and actions, and its links, all scrollable. The choice is remembered, and the asset actions below work in both views.
Work with a tile’s assets from the card
Under each asset’s URL the card shows [ download | copy URL | add to map ].
- download asks where to save that one file and saves it with the usual progress bar. It never adds the file to the map afterwards.
- copy URL puts the asset’s address on the clipboard. For a Planetary Computer (Azure) asset it is a signed link that works for a limited time.
- add to map streams that asset as a layer. It is offered only for rasters (GeoTIFF, JPEG 2000) and COPC point clouds, not for thumbnails, metadata files or plain LAZ.
Press Pin open on the card to keep it up while you work through several assets: it stays when the mouse leaves, when you hover other tiles or scroll the list, and after each action. A pinned card is a floating panel: drag its top bar to move it and its bottom-right corner to resize it. Close (or Unpin) puts it away; a new search closes it too.
| Field | Notes |
|---|---|
| Size | Blank until you download or check sizes — the catalog doesn't carry file size up front. |
| Projection | A plain EPSG:N for imagery/DEM. LiDAR tiles have a compound
horizontal+vertical CRS with no single EPSG code, so it's shown as EPSG:horizontal/EPSG:vertical
(e.g. EPSG:6473/EPSG:6360 for NAD83(2011) Kentucky Single Zone + NAVD88 height). |
| Points | LiDAR tiles only, from the catalog's own point count — not re-derived. |
Selecting tiles
Click a tile, or its checkbox, to toggle just that tile: pick as many as you like one after another, with no Ctrl needed. Select All / Clear Selection above the results (or Ctrl+A) take or drop everything. The checkbox and the row highlight always agree.
The list and the map follow each other
- Selecting tiles in the list selects their footprints on the map, as before.
- Hover the map over a footprint and the matching tile(s) light up in warm yellow in the list, which scrolls to the first. Where footprints overlap, every tile under the pointer is tinted. Moving off the footprints, or off the map, clears it.
- Select footprints on the map with any QGIS Select tool (with the results layer active) and those tiles become selected in the list, so Add to map, Download and the rest act on them.
Imagery / DEM actions
Add selected to map
Streams the selected COG tiles directly as map layers — no download. A scene that is a file per band, such as Landsat or HLS on Planetary Computer, comes in as a true color composite, since it has no single color image to add.
Download selected…
Downloads the selected tiles to a folder you choose, after checking their total size.
Export VRT
Stitches the selected tiles into a GDAL virtual raster, one per collection, and adds it to the map.
Export as MosaicJSON…
Writes a MosaicJSON file per collection — a portable index that titiler, rio-tiler or cogeo-mosaic can read directly, with no GDAL or server round trip involved.
Add as server mosaic
Registers a titiler-pgstac search restricted to the selected tiles and streams it — a precise crop of the statewide mosaic, with no download or local stitching.
Export as script…
Saves a Jupyter notebook, Python, R or shell script that downloads the selected tiles outside QGIS. See Export as script.
Right-click a tile
Add one band, a band combination (color infrared, SWIR...) or an index (NDVI, NDWI, your own formula). See Right-click: bands & indices.
Smooth drawing. Rasters added to the map (streamed, downloaded, mosaics, band combinations and indices) are drawn with bilinear resampling when you zoom in, which looks smoother than QGIS’s default nearest neighbour; zooming out stays nearest neighbour. A raster drawn from a palette, such as land cover classes, keeps nearest neighbour so class codes are not averaged into classes that are not there. To change it for one layer, open its Properties → Symbology → Resampling.
LiDAR actions
Add selected to map
Streams selected COPC tiles directly. Plain LAZ/LAS tiles (Phase 1) can't be streamed this way — download them instead.
Download selected…
Downloads the selected point cloud tiles to a folder you choose.
Add selected as Virtual Point Cloud
Combines the selected COPC tiles into one Virtual Point Cloud (.vpc) layer, streamed directly from their remote URLs — no download, no local file beyond the small index itself.
Export as script…
Saves a Jupyter notebook, Python, R or shell script that downloads the selected tiles outside QGIS. See Export as script.
Add downloaded files to the map (unchecked by default) adds files after a download completes; two or more LiDAR tiles are combined into one Virtual Point Cloud layer automatically.
Virtual point cloud options
With Add downloaded files to the map ticked and two or more tiles selected, clicking Download selected… first asks for the options of QGIS’s Build virtual point cloud algorithm. They are remembered between sessions:
- Calculate boundary polygons — store each tile’s exact data outline, not just its rectangle.
- Calculate statistics — store the range of each attribute so styling works straight away.
- Build overview point cloud — also write a thinned overview (every 1000th point) next to the
.vpc.
With all three unchecked (the default) the index is built instantly from the catalog’s metadata. Any option makes QGIS read every point of every tile in the background, which takes longer. The options are not offered for Add selected as Virtual Point Cloud, which streams: the algorithm has to read every point, and it never finished over https.
Point filter (LiDAR)
Choose which points of a point cloud to keep. On the LiDAR tab, open Point filter (the collapsed bar just above the action buttons). Its header says what is kept, for example Point filter (Ground; last return).
- Classes — tick the LAS classifications to keep (ground, vegetation, building, water, noise and so on). The buttons above them choose a common set in one click: All, Ground only, Without noise, Vegetation, Buildings. Other (19 and up) covers reserved and user-defined codes, so they are not dropped by accident.
- Returns — All returns, First return or Last return. A pulse with a single return counts as both first and last.
The filter combines the two: Ground with Last return keeps only ground points that are last returns. It applies to three buttons:
| Button | With a filter on |
|---|---|
| Add selected to map | Each streamed tile is added with a filter, so only the kept points draw. The layer is named like T1 (Ground; first return), and a filtered and an unfiltered copy of the same tile can be on the map together. Nothing is downloaded or changed on disk. |
| Download selected… | After the download, PDAL writes a filtered copy of each tile into a filtered folder beside the originals (the originals are kept). If Add downloaded files to the map is ticked, the copies are added; a tile with no points left is reported and left out. |
| Add selected as Virtual Point Cloud | QGIS cannot filter a virtual point cloud that streams its tiles. You are offered Download and filter (the tiles are downloaded, filtered by PDAL and combined) or Add unfiltered. |
Export as script… does not use the filter. Downloading and filtering reads every point of every tile, so it takes a while; it needs PDAL (see Installation). With no class ticked there is nothing to keep, and the buttons say so instead of running.
Export as script
Both tabs have an Export as script… button. Select tiles, click it, pick a format, and choose where to save. The script downloads those tiles’ main files (the COG, or the COPC/LAZ file) outside QGIS.
- Jupyter notebook (.ipynb) — separate cells for settings, the tile list, the helper functions and the download.
- Python script (.py) — standard library only. Set
DESTandWORKERSat the top. - R script (.R) — base R only, no packages. Set
destat the top; run withRscriptor in RStudio. Downloads one file at a time. - Shell script (.sh) — bash and curl. Usage:
./download_tiles.sh [folder];JOBS=8sets how many download at once.
All four skip files that already exist, turn s3:// addresses into https, and fetch a Planetary Computer
SAS token when they run for Azure files (a token expires within the hour, so it can’t be saved in the script).
Files that aren’t public, such as a private S3 bucket, need their own credentials, which the scripts don’t handle.
Clip to area of interest
Unchecked by default. When enabled with a polygon AOI, output is cropped to the AOI's actual shape instead of the tiles' full rectangular extent.
| Context | Mechanism |
|---|---|
| Imagery/DEM — Export VRT | A GDAL warp cutline; pixels outside the AOI become nodata. |
| LiDAR — Download selected | A PDAL filters.crop pipeline, one crop stage per AOI part (merged if the AOI is multi-part), run per tile before combining into a VPC. |
Known issues
A tile draws in the wrong place (a coordinate system problem)
Now and then a layer lands far from where its tile belongs, with a Utah tile showing up in northern Africa the usual example. The data is fine; QGIS has just read the tile’s coordinate system (CRS) wrongly. It tends to happen with:
- Compound coordinate systems, a map projection plus a height datum, such as NAD83 / UTM zone 12N + NAVD88 height. USGS 3DEP rasters and point clouds use these. When QGIS can’t convert one, it leaves the numbers as they are, so UTM metres are read as Web Mercator metres.
- A file with no coordinate system of its own, which can pick up the project’s.
- Catalogs whose tile footprint is given as a 3D box (with heights) rather than a flat one.
The plugin checks where each layer lands against the footprint the catalog states, and corrects it where it can: it reads the horizontal coordinate system from the file itself and uses that, and a point cloud’s height datum is left out because a map doesn’t need it. Even so, a layer can still come out wrong, especially a file with an unusual or missing CRS. If one does:
- Remove the layer and add it again. A layer already on the map is never re-checked, so a fix only applies to layers added afterwards.
- Open the layer’s Properties → Information to see the CRS it carries, and compare the tile’s footprint on the results layer.
- If it is still off, set the right CRS yourself with Layer → Set Layer CRS (the tile’s coordinate system is in its JSON card,
often as
proj:epsgorproj:code), and please report it with the collection and tile name so it can be handled.
"Preferred Transformation Not Available" dialog
The first time QGIS needs to reproject between Kentucky's state plane CRS and WGS84, it may show a
dialog saying the preferred transform needs a grid file, us_noaa_kyhpgn.tif, that isn't
installed, and offers a 4 m-accuracy fallback instead of the preferred 2 m.
To stop seeing it: download the grid from
cdn.proj.org/us_noaa_kyhpgn.tif (a direct file,
not a page), then either use the dialog's own Install … from Folder button, or
drop it into your OSGeo4W install's PROJ data directory (%OSGEO4W_ROOT%\share\proj\) so
it's available to every tool using that PROJ install, not just QGIS.
Help & feedback
Help (top of the dock) opens this page. Feedback offers two ways to reach the developer: Report an Issue on GitHub opens a pre-filled issue in your browser (needs a free GitHub account; public), or Send Feedback Directly sends a private message with no account needed. Your email is optional, only if you want a reply. Both attach the plugin, QGIS and operating system versions automatically.
Where this came from
Kentucky STAC consolidates two separate ArcGIS Pro add-ins built for the same Kentucky From Above catalog — one for imagery/elevation, one for LiDAR — into a single cross-platform QGIS plugin with one shared area-of-interest workflow instead of two separate tools.
The originals are kyfromabove-stac-addin (imagery & elevation) and kylidar-addin (LiDAR); this plugin lives at ianhorn/kentucky-stac.
Licensed GPL-2.0-or-later.