ArcGIS. Feature
(ArcGIS v1.0.2)
View Source
Access to features in an ArcGIS feature service.
Summary
Types
An ArcGIS feature made up of attributes and geometry
Functions
Deletes features from a layer using a where clause
Create a new feature struct from a map of data, such as returned by ArcGIS
Add, update, and/or delete features from one or more layers. Defaults to rolling back on failure.
Query features in a Feature Service layer or table
Conforms a list of features to ArcGIS requirements, making them appropriate for e.g. use in mutations
Types
@type feature_geometry() :: map()
@type features_by_global_id() :: [String.t()]
@type features_by_id() :: [non_neg_integer()]
@type mutate_option() :: {:rollback_on_failure, boolean()} | {:upload_format, upload_format()} | {:use_global_ids, boolean()}
@type mutate_options() :: [ArcGIS.Portal.request_option() | mutate_option()]
@type mutations() :: %{ optional(:create) => [t()], optional(:updates) => [t()], optional(:delete) => features_by_id() | features_by_global_id() }
@type mutations_by_layer_id() :: %{required(non_neg_integer()) => mutations()}
@type t() :: %{ attributes: %{required([key :: String.t()]) => term()}, geometry: feature_geometry() }
An ArcGIS feature made up of attributes and geometry
@type upload_format() :: :json | :pbf
Functions
@spec delete( ArcGIS.Feature.Service.t(), layer_id :: non_neg_integer(), where_clause :: String.t(), options :: ArcGIS.Portal.request_options() ) :: {:ok, ArcGIS.Portal.ResultSet.t()} | {:ok, term()} | {:error, reason :: String.t()}
Deletes features from a layer using a where clause
Create a new feature struct from a map of data, such as returned by ArcGIS
@spec mutate( ArcGIS.Feature.Service.t(), mutations :: mutations_by_layer_id(), options :: mutate_options() ) :: {:ok, ArcGIS.Portal.ResultSet.t()} | {:ok, term()} | {:error, reason :: String.t()}
Add, update, and/or delete features from one or more layers. Defaults to rolling back on failure.
@spec query( ArcGIS.Feature.Service.t(), layer_id :: non_neg_integer(), ArcGIS.Portal.request_options() ) :: {:ok, ArcGIS.Portal.ResultSet.t()} | {:error, term()}
Query features in a Feature Service layer or table
@spec sanitize( features :: [t()], layer_id :: non_neg_integer(), service :: ArcGIS.Feature.Service.t() ) :: [t()]
Conforms a list of features to ArcGIS requirements, making them appropriate for e.g. use in mutations