gis:layer-has-attribute


(gis:layer-has-attribute  layerId  name)

Returns whether the 'GIS Attribute' specified by name is contained in the 'GIS Layer' object specified by layerId.

Arguments

layerId  (integer)  'handle' identifier of the 'GIS Layer' to be examined for a contained Feature attribute
name  (string)  the name of the Feature attribute to be verified

Return

T or NIL

Example

(vl-load-gis)  T
(setq layers (gis:get-layers))  ("shp_3857_point_2d_utf8")
(setq layerId (gis:get-layer (car layers)))  1736904439915
(setq attributes (gis:layer-get-attributes layerId))  ("id" "name" "int_number" "dec_number" "date")
(gis:layer-has-attribute layerId "id")  T
(gis:layer-has-attribute layerId "NewId")  NIL

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.