gis:rename-layer


(gis:rename-layer  oldname  newname)

This function renames the 'GIS Layer' object specified by oldname to the new name newname.

Arguments

oldname  (string) the name of an existing 'GIS Layer' to be renamed
newname  (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 newLayerId (gis:create-layer "NewGisLayer_Points" bcGisTypePoint ""))  1736821215011
(setq layers (gis:get-layers))  ("shp_3857_point_2d_utf8" "NewGisLayer_Points")
(gis:rename-layer "NewGisLayer_Points" "New_Points")  T
(setq layers (gis:get-layers))  ("shp_3857_point_2d_utf8" "New_Points")

Remarks

a 'GIS Layer' can also be renamed by function (gis:layer-set-name)



©  Bricsys NV. All rights reserved.