Custom Connector

USGS Water Data OGC Connector

US

The USGS Water Data OGC Connector integrates with the USGS Water Data OGC APIs, providing access to geospatial water data — continuous sensor measurements, daily data, field measurements, and metadata about monitoring locations, aquifers, and reference codes. Built on OGC API standards, it supports JSON, HTML, JSON-LD, and CSV responses for hydrologic analysis on GCP.

Type
Virtual machines, Single VM, BYOL
Runs on
Google Compute Engine
Last update
24 Oct 2024
Category
Integration
Overview

Integration Overview

This connector exposes OGC API - Features endpoints across ~25 collections. Beyond the API-level endpoints (landing page, collections, conformance, OpenAPI), each collection offers the same seven operations — describe collection, list features, get feature by ID, queryables, schema, and OPTIONS for both the items endpoint and a single item. The collections are documented as a group below.

  • getLandingPage. Retrieve the API landing page — title, description, links, and conformance.
  • getCollections. Retrieve the list of available collections.
  • getConformance / getOpenapi. Retrieve the conformance declaration and the OpenAPI specification.
  • describe<Collection>. Retrieve metadata for a collection (id, title, description, extent, links).
  • get<Collection>Features. Retrieve features from a collection, with bbox, properties, sort, and pagination filters.
  • get<Collection>Feature. Retrieve a single feature by ID.
  • get<Collection>Queryables / Schema. Retrieve queryable properties and the schema for a collection.
  • options<Collection>Features / Feature. Retrieve supported HTTP methods and parameters for the items endpoint or a single item.
Documentation

Detailed Integration Documentation

Landing Page

ActiongetLandingPage
PurposeRetrieves the API landing page — the entry point with title, description, links to collections and conformance, and conformance declarations.
ConfigurationConfigure the base URL via CONNECTOR_ENV_USGSWATERDATAOGC_BASE_URL (e.g. https://api.waterdata.usgs.gov/ogcapi/v0), with an optional API key via CONNECTOR_ENV_USGSWATERDATAOGC_API_KEY.
ParametersOptional:
format (json, html, jsonld, csv; default json); lang (default en-US).
OutputSuccessful: JSON/HTML/JSON-LD/CSV with title, description, links (href, rel, type, title, hreflang), and conformsTo. Failure: 400 Invalid parameter value.
Workflow exampleExecute getLandingPage with format=json, then extract links to navigate to collections.

Collections & API Metadata

ActiongetCollections / getConformance / getOpenapi
PurposeRetrieves the list of available collections (id, title, description, extent, itemType, links), the API conformance declaration, and the OpenAPI specification document.
ConfigurationConfigure the base URL via CONNECTOR_ENV_USGSWATERDATAOGC_BASE_URL (e.g. https://api.waterdata.usgs.gov/ogcapi/v0), with an optional API key via CONNECTOR_ENV_USGSWATERDATAOGC_API_KEY.
ParametersOptional:
format (json, html, jsonld, csv; default json); lang (default en-US).
OutputSuccessful: JSON/HTML/JSON-LD/CSV with a collections array (or conformance URIs, or the OpenAPI document) and links. Failure: 400 Invalid parameter value.
Workflow exampleExecute getCollections with format=json to identify collections (e.g. monitoring-locations, parameter-codes) for further queries.

Available Collections

Reference collectionsagency-codes, altitude-datums, aquifer-codes, aquifer-types, coordinate-accuracy-codes, coordinate-datum-codes, coordinate-method-codes, hydrologic-unit-codes, medium-codes, national-aquifer-codes, parameter-codes, reliability-codes, site-types, statistic-codes, topographic-codes, time-zone-codes.
Data collectionslatest-continuous, daily, latest-daily, field-measurements, time-series-metadata, monitoring-locations.
NoteEach collection supports the same seven operations documented below (describe, features, feature, queryables, schema, and OPTIONS ×2).

Describe Collection

Actiondescribe<Collection>Collection (e.g. describeMonitoringLocationsCollection)
PurposeRetrieves metadata for a collection — id, title, description, spatial/temporal extent, itemType, and links.
ConfigurationConfigure the base URL via CONNECTOR_ENV_USGSWATERDATAOGC_BASE_URL (e.g. https://api.waterdata.usgs.gov/ogcapi/v0), with an optional API key via CONNECTOR_ENV_USGSWATERDATAOGC_API_KEY.
ParametersRequired:
resourceId (the collection identifier, e.g. monitoring-locations). Optional:
format (json, html, jsonld, csv; default json); lang (default en-US).
OutputSuccessful: JSON/HTML/JSON-LD/CSV with id, title, description, extent, itemType, and links. Failure: 404 Resource not found.
Workflow exampleExecute describeParameterCodesCollection with resourceId=parameter-codes to understand a collection before querying it.

Get Features (list)

Actionget<Collection>Features (e.g. getMonitoringLocationsFeatures)
PurposeRetrieves features (items) from a collection, supporting filtering by bounding box and properties, sorting, and pagination.
ConfigurationConfigure the base URL via CONNECTOR_ENV_USGSWATERDATAOGC_BASE_URL (e.g. https://api.waterdata.usgs.gov/ogcapi/v0), with an optional API key via CONNECTOR_ENV_USGSWATERDATAOGC_API_KEY.
ParametersOptional:
format (json, html, jsonld, csv; default json); lang (default en-US). bbox (4 or 6 numbers); bbox-crs; crs; limit (default 10000, max 10000); properties (comma-separated); skipGeometry; sortby (e.g. +field); offset; collection-specific property filters (e.g. agency_name, aquifer_name); api_key.
OutputSuccessful: a FeatureCollection with type, timeStamp, numberMatched, numberReturned, a features array (id, geometry, properties, links), and links. Failure: 400 Invalid parameter value.
Workflow exampleExecute getMonitoringLocationsFeatures with limit=100 and a bbox, then process the features for mapping or analysis.

Get Feature (by ID)

Actionget<Collection>Feature (e.g. getMonitoringLocationsFeature)
PurposeRetrieves a single feature by ID from a collection — detailed information about one item.
ConfigurationConfigure the base URL via CONNECTOR_ENV_USGSWATERDATAOGC_BASE_URL (e.g. https://api.waterdata.usgs.gov/ogcapi/v0), with an optional API key via CONNECTOR_ENV_USGSWATERDATAOGC_API_KEY.
ParametersRequired:
featureId (unique feature identifier). Optional:
format (json, html, jsonld, csv; default json); lang (default en-US). crs; api_key.
OutputSuccessful: a Feature object with type, id, geometry, properties, and links. Failure: 404 Resource not found.
Workflow exampleExecute getAgencyCodesFeature with featureId=USGS and format=json to display detailed information for that code.

Queryables & Schema

Actionget<Collection>Queryables / get<Collection>Schema
PurposeRetrieves the queryable properties (with optional actual-domain or valid-domain profile) and the schema for a collection — for building dynamic queries and validating data.
ConfigurationConfigure the base URL via CONNECTOR_ENV_USGSWATERDATAOGC_BASE_URL (e.g. https://api.waterdata.usgs.gov/ogcapi/v0), with an optional API key via CONNECTOR_ENV_USGSWATERDATAOGC_API_KEY.
ParametersOptional:
format (json, html, jsonld, csv; default json); lang (default en-US). properties (comma-separated); profile (actual-domain, valid-domain — queryables only); api_key.
OutputSuccessful: JSON/HTML/JSON-LD/CSV with a queryables array (queryable, type, description, title, language, type-ref). Failure: 404 Resource not found.
Workflow exampleExecute getAgencyCodesQueryables with profile=actual-domain to determine which properties can be queried.

OPTIONS (items & single item)

Actionoptions<Collection>Features / options<Collection>Feature
PurposeRetrieves supported HTTP methods and parameters for a collection’s items endpoint, or for a specific item by ID.
ConfigurationConfigure the base URL via CONNECTOR_ENV_USGSWATERDATAOGC_BASE_URL (e.g. https://api.waterdata.usgs.gov/ogcapi/v0), with an optional API key via CONNECTOR_ENV_USGSWATERDATAOGC_API_KEY.
Parametersoptions…Feature required:
featureId. Optional:
api_key.
OutputSuccessful: an options response with supported methods and parameters. Failure: 500 Server error (items) or 404 Resource not found (single item).
Workflow exampleExecute optionsMonitoringLocationsFeatures to determine supported operations before building requests.

Example Workflow: Water Data Analysis

Discover collectionsUse getLandingPage and getCollections to identify collections (e.g. monitoring-locations, daily, parameter-codes).
Query featuresUse get<Collection>Features (e.g. getDailyFeatures) with bbox, properties, and limit to fetch data.
Inspect a recordUse get<Collection>Feature with a featureId for a specific record, and getQueryables/getSchema to understand fields.
IntegrateProcess the GeoJSON/CSV results in a GCP pipeline for environmental monitoring, research, or resource management.
Support

For technical support, contact custom-connectors-support@isolutions.sa.

free consultation

Schedule a Free Consultation With Our Specialists

Book a free demo
request

Begin Your Adventure With Experienced Professionals

Send request
help desk

Do You Have Questions or Want More Information? Call Now.

Contact support