pgf_collection_feature: Get collection feature

View source: R/collection-feature.R

pgf_collection_featureR Documentation

Get collection feature

Description

Get collection feature given collection_id, feature_id and optional query parameters (see API specs here).

Usage

pgf_collection_feature(
  collection_id,
  feature_id,
  base_url,
  path,
  properties = NULL,
  transform = NULL,
  nocache = NULL,
  user = gh_user(),
  verbose = FALSE,
  response = FALSE
)

Arguments

collection_id

A character string of the collection id.

feature_id

A positive whole number of the feature id.

base_url

A character string of the base URL.

path

A character string of the path or endpoint.

properties

A vector of strings of the column names to include. If NULL (default), all columns are retained.

transform

A character vector with the name of the valid transform function followed by the parameter values (e.g. c("ST_Simplify", 100)).

nocache

A character string indicating whether to cache results or not. Possible values include 'true' or 'false' or NULL.

user

A character string of the user. This allows whoever is running the server your are querying to contact you in case of misuse.

verbose

A flag indicating whether to provide verbose GET response.

response

A flag indicating whether to return the raw response object.

Value

A sf object.

See Also

Other collections: pgf_collection_bbox(), pgf_collection_crs(), pgf_collection_description(), pgf_collection_features(), pgf_collection_geometry_type(), pgf_collection_properties(), pgf_collections()

Examples

## Not run: 
pgf_collection_feature("whse_basemapping.fwa_wetlands_poly", limit = 1)

## End(Not run)

poissonconsulting/pgfsr documentation built on Nov. 4, 2024, 4:02 p.m.