Skip To Content

esri_webfeaturelayer_get (AutoLISP)

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") ("CADLAYER" . "ESRI_UtilityPoles") ("CADBLOCK" . "") ("URL" . "https://starship.esri.com/portal/home/item.html?id=e3af6716ec324ec4a0efea405f4869c1") ("DEFINITIONEXPRESSION" . "") ("EDITMODE" . "EDIT") ("SUPPORTSBRANCHVERSIONS" . "TRUE") ("PORTALITEMURL" . "https://starship.esri.com/portal/home/item.html?id=e3af6716ec324ec4a0efea405f4869c1") ("CONNECTED" . "TRUE") ("SPATIALREFERENCE" . "6443") ("SOURCESPREF" . "103023") ("DATUMTRANSFORMATION" (("From" . "6443") ("To" . "3857") ("Transformation" ((("Direction" . "Reverse") ("Step" . "108363")))))) ("BRANCH" . "sde.DEFAULT") ("SUPPORTSEDITORTRACKING" . "TRUE") ("LASTEDITTIME_UTC" . "07/24/2023 16:28:58"))

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_Residential_Buildings web feature layer as an associated list:

(("NAME" . "Destroyed") ("PARENTNAME" . "Damage_to_Commercial_Buildings") ("GEOMTYPE" . "Point") ("CADLAYER" . "ESRI_Damage_to_Commercial_Buildings_Destroyed") ("CADBLOCK" . "") ("PARENTURL" . "https://sampleserver7.arcgisonline.com/server/rest/services/DamageAssessment/FeatureServer/0") ("SUBLAYERID" . 2) ("EDITMODE" . "QUERY"))

Return values

  • If successful the function returns an associated list of web feature layer properties as dotted pairs with a label and value. The associated list of properties may contain these values and others:

    Associated labelValue typeValue description
    "NAME"

    string

    The name of the feature layer or subtype sublayer.

    "GEOMTYPE"

    string

    The feature layer geometry type {"POLYGON", "POLYLINE", "POINT"}.

    "CADLAYER"

    string

    The AutoCAD layer used to define the parent feature layer (additional layers can be used in the case of subtypes).

    "CADBLOCK"

    string

    The AutoCAD block associated to the feature layer.

    "URL"

    string

    The URL path to the feature layer REST endpoint.

    "EDITMODE"

    string

    The editing option {"EDIT", "NO EDIT"}.

    "PORTALITEMURL"

    string

    The URL path to the item.

    "DEFINITIONEXPRESSION"

    string

    The where-clause expression used to limit the features retrieved from the layer in the drawing.

    "PARENTNAME"

    string

    The name of the parent web feature layer.

    "PARENTURL"

    string

    The URL of the parent web feature layer REST endpoint.

    "SUBLAYERID"

    string

    The coded value of the subtype domain.

    "SUPPORTSBRANCHVERSIONS"

    string

    Whether the layer supports branch versioning: {"TRUE" or "FALSE"}

    "BRANCH"

    string

    Name of the layer's branch.

    "DATUMTRANSFORMATION"

    string

    Associated list containing the datum transformation steps.

    "SPATIALREFERENCE"

    string

    The spatial reference of the layer as WKID or WKT string.

    "SOURCESPREF"

    string

    The spatial reference of the data source of the layer as WKID or WKT string.

    "<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" . "Web 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.