Module Overview¶
georest is organized by provider. Each provider is a subpackage with its own transport code, so providers can be added side by side without stepping on each other.
Esri and ArcGIS (georest.esri)¶
georest.restesri.servicesGeneric queries against any ArcGIS Image, Map or Feature Service: tile URL templates, features as GeoJSON, and Image Service raster operations, including
exportImage,computeStatisticsHistograms,identifyPixelValue,getSamplesandqueryBoundary.georest.restesri.portalSearch ArcGIS Online, IIPP, USGS, NOAA, USFS, NASA or any ArcGIS Enterprise portal with
searchPortal(), and read a service’s metadata withgetServiceMetadata().georest.restesri.edwThe USDA Forest Service Enterprise Data Warehouse: catalog search by keyword or theme (
search_edw_services()), layer roles, FGDC and ISO metadata, and feature and analytic queries (query_features()).georest.restesri.authSign in to ArcGIS Online or a Portal, by browser (OAuth 2.0 with PKCE) or with a token from the
arcgispackage. See Authentication.
USGS (georest.usgs)¶
georest.usgs.waterdataThe USGS Water Data OGC API: monitoring locations, daily and continuous values, field measurements, peaks and time-series metadata.
to_rows()flattens a result into plain rows.
USDA Forest Service (georest.usfs)¶
Five modules, used the same way as the Esri and USGS ones: import the module and call through it, from georest.usfs import fia then fia.estimate(...). Tabular results are pandas DataFrames.
georest.usfs.fiaForest Inventory and Analysis estimates from FIADB-API, the service behind EVALIDator.
estimate()returnsse_pctandplotson every cell and flags cells too thin to report, because FIA is a probability sample and an estimate without its sampling error is not a fact. Pass several evaluations to estimate across them in one request, the only way to get a correct combined standard error. Bad requests are caught locally first: an attribute that needs growth accounting, or a grouping label FIADB-API would silently ignore. To find what to estimate, search the 752 attributes, 1,143 evaluations and 96 groupings offline withfia.find_attributes,fia.find_evaluationsandfia.find_groupings.georest.usfs.vocabThe FIA catalogs behind
fia’s searches. A snapshot ships with the package; refreshed copies are cached in~/.georest/usfs(cache_dir()) and can be refreshed on demand withrefresh_all().georest.usfs.lcmsLandscape Change Monitoring System land cover, land use and change for the API’s precomputed areas: counties, ranger districts and national rollups (
lcms_summary()). Class tables and map palettes come from the API, so they match the release.georest.usfs.lcms_eeLCMS as Earth Engine image collections, which is how
lcms_summary()handles your own polygon. Optional:pip install "georest[ee]".georest.usfs.alignLCMS treed area beside FIA forest-land area (
compare_area()). The two measure different things, a classified map and a probability sample, so the result keeps them apart and carries the reasons they differ.
Module Reference¶
ArcGIS / Esri REST service clients - stdlib only, no third-party deps. |
|
georest.usgs - clients for USGS APIs. |
|
georest.usfs - clients for USDA Forest Service data APIs. |