gis:feature-has-attribute


(gis:feature-has-attribute featureId attName)

Returns whether the 'GIS Feature' object specified by featureId contains a 'GIS Attribute' as specified by attName.

Arguments

featureId  (integer)  'handle' identifier of the 'GIS Feature' to query for the specified Attribute
attName  (string)  name of the 'GIS Feature Attribute" to query (case-insensitive)

Return

T or NIL

Example

(vl-load-gis)  T
(setq layers (gis:get-layers))  ("shp_3857_point_2d_utf8")
(setq name (car layers))  "shp_3857_point_2d_utf8"
(setq layerId (gis:get-layer name))  1736983018068
(setq features (gis:layer-get-features layerId))  (1685094904232 1685094904233)
(setq featureId (car features))  1685094904232
(gis:feature-has-attribute featureId "ID")  T

Remarks

a 'GIS Feature Attribute' represents a "Column" in the GIS Database table; each 'GIS Feature' (built-up from dwg entities) is a row in such table;
the 'GIS Feature Attribute' name string is always handled as case-insensitive !



©  Bricsys NV. All rights reserved.