gis:remove-layer


(gis:remove-layer  name)

This function removes the 'GIS Layer' object specified by name from the current drawing.

Arguments

name  (string) the name of the 'GIS Layer' to be removed

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

(gis:rename-layer "NewGisLayer_Points" "New_Points")  T
(setq layers (gis:get-layers))  ("shp_3857_point_2d_utf8" "New_Points")
(gis:remove-layer "New_Points")  T
(setq layers (gis:get-layers))  ("shp_3857_point_2d_utf8")

Remarks

entities ('GIS Features') associated with the removed 'GIS Layer' are *NOT* deleted



©  Bricsys NV. All rights reserved.