gis:layer-set-name


(gis:layer-set-name  layerId  name)

This function assigns the specified name to the 'GIS Layer' object specified by layerId.

Arguments

layerId  (integer)  'handle' identifier of the 'GIS Layer' to assign a new name for
name  (string) the new name for the 'GIS Layer'

Return

T on success, 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"

(gis:layer-set-name layerId "Shape_Points")  T

(setq layers (gis:get-layers))  ("Shape_Points")

Remarks

also see function (gis:rename-layer)



©  Bricsys NV. All rights reserved.