Gets the web feature layer properties for the specified web feature layer as an associated list.
Syntax
(esri_webfeaturelayer_get flname [subtype])
Arguments
- flname | string | required | An existing web feature layer name in the drawing.
- subtype | string | optional | An existing subtype name defined for the feature layer.
Example usage 1
Attempt to get the web feature layer properties for the utilityPoles web feature layer.(esri_webfeaturelayer_get "utilityPoles")
Result example usage 1
Gets the web feature layer properties for the utilityPoles web feature layer as an associated list:
(("NAME" . "UtilityPoles") ("GEOMTYPE" . "Point") ("PORTALITEMURL" . "https://MyGISportal.esri.com/portal/home/item.html?id=e3af6716ec324ec4a0efea405f4869c1") ("URL" . "https://MyGISportal.com/server/rest/services/subtypes/UtilityPoles/FeatureServer/0") ("BRANCH" . "sde.DEFAULT") ("SYMBOLTYPE" . "Point") ("SYMBOLDESCRIPTION" . "") ("CADLAYER" . "ESRI_UtilityPoles") ("CONNECTED" . "TRUE") ("DEFINITIONEXPRESSION" . "") ("EDITMODE" . "EDIT") ("SUPPORTS_M" . "FALSE") ("SUPPORTS_Z" . "TRUE") ("SUPPORTSATTACHMENTS" . "TRUE") ("SUPPORTSBRANCHVERSIONS" . "TRUE") ("SUPPORTSEDITING" . "TRUE") ("TYPEFIELD" . "PoleType") ("SPATIALREFERENCE" . "6443") ("SOURCESPREF" . "103023") ("DATUMTRANSFORMATION" (("From" . "6443") ("To" . "3857") ("Transformation" ((("Direction" . "Reverse") ("Step" . "108363")))))) ("SUPPORTSEDITORTRACKING" . "TRUE") ("LASTEDITTIME_UTC" . "1716295706000"))Example usage 2
Attempt to get the web feature layer properties for the Destroyed subtype of the Damage_to_Residential_Buildings web feature layer.(esri_webfeaturelayer_get "Damage_to_Residential_Buildings" "Destroyed")
Result example usage 2
Gets the web feature layer properties for the Destroyed subtype of the Damage_to_Commercial_Buildings web feature layer as an associated list:
(("NAME" . "Destroyed") ("PARENTNAME" . "Damage_to_Commercial_Buildings") ("GEOMTYPE" . "Point") ("CADLAYER" . "ESRI_Damage_to_Commercial_Buildings_Destroyed") ("SYMBOLTYPE" . "Block Reference") ("SYMBOLDESCRIPTION" . "Destroyed_Structure") ("PARENTURL" . "https://sampleserver7.arcgisonline.com/server/rest/services/DamageAssessment/FeatureServer/0") ("SUBLAYERID" . 2) ("EDITMODE" . "QUERY"))Return values
- If successful the function returns an AutoLISP associated list of web feature layer properties with a label and value. The associated list of properties may contain these values and others:
Associated label Value type Value description "BRANCH" String
Name of the layer's branch.
"CADLAYER" String
The AutoCAD layer used to define the parent feature layer (additional layers can be used in the case of subtypes).
"CONNECTED" String
Whether the layer is connected: {"TRUE" or "FALSE"}
"DATUMTRANSFORMATION" String
Associated list containing the datum transformation steps.
"DEFINITIONEXPRESSION" String
WHERE clause expression to limit features from the layer by attribute values. The syntax of the WHERE clause is determined by the source data.
"EDITMODE" String
The editing option {"EDIT", "QUERY"}.
"GEOMTYPE" String
The feature layer geometry type {"POLYGON", "POLYLINE", "POINT"}.
"LASTEDITTIME_UTC" String
The epoch/Unix time the web feature layer was last edited.
"NAME" String
The name of the feature layer or subtype sublayer.
"PARENTNAME" String
The name of the parent web feature layer.
"PARENTURL" String
The URL of the parent web feature layer REST endpoint.
"PORTALITEMURL" String
The URL path to the item.
"RELATIONSHIPS" List of Strings
A list of available relationship field names.
"SOURCESPREF" String
The spatial reference of the data source of the layer as WKID or WKT string.
"SPATIALREFERENCE" String
The spatial reference of the layer as WKID or WKT string.
"SUBLAYERID" String
The coded value of the subtype domain.
"SUPPORTEDCURVETYPES" List of Strings
Supported curve types: {"esriGeometryCircularArc", "esriGeometryEllipticArc", "esriGeometryBezier3Curve", "esriGeometryBezier"}
"SUPPORTSATTACHMENTS" String
Whether the layer supports attachments: {"TRUE" or "FALSE"}
"SUPPORTSBRANCHVERSIONS" String
Whether the layer supports branch versioning: {"TRUE" or "FALSE"}
"SUPPORTSEDITING" String
Whether the layer supports editing: {"TRUE" or "FALSE"}.
"SUPPORTSEDITORTRACKING" String
Field from which sublayers are defined: {"TRUE" or "FALSE"}
"SUPPORTSM" String
Whether the layer supports m-values: {"TRUE" or "FALSE"}
"SUPPORTSTRUECURVES" String
Whether the layer supports true curves: {"TRUE" or "FALSE"}
"SUPPORTSZ" String
Whether the layer supports z-value: {"TRUE" or "FALSE"}
"SYMBOLDESCRIPTION" String
The block name if the symbol type is Block Reference, or a description if the symbol type is COGO Point or the hatch pattern name if the symbol type is Hatch
"SYMBOLTYPE" String
The default element type of : {POINT, Block Reference, COGO Point, Automatic, or Hatch}.
"TYPEFIELD" String
The Typefield property from REST.
"URL" String
The URL path to the feature layer REST endpoint.
"<other web layer specific properties... >"
< varies...>
< varies...>
- If failed, returns a list with the first value of nil and then an associated list containing the key value "Error" and an associated error message as a string: (nil ("Error" . "<message>"))
Failed return values
A failed return value can occur for any of the following reasons:
- (nil ("Error" . "Missing required
argument."))
The required argument is not supplied.
- (nil ("Error" . "Feature layer not found."))
The specified web feature layer value is not a valid web feature layer in the drawing.
- (nil ("Error" . "Sublayer not found.")
The supplied subtype name was not found.