gis:create-layer


(gis:create-layer  name  geomType  source)

This function creates a new 'GIS Layer' object as specified by name using the geomType , and the optional source 'GIS Source' in the current drawing.

Arguments

name  (string) the name of the 'GIS Layer' to be verified
geomType  (integer 1...7, see Type Constants enumeration "Civil GIS Geometric Type") the Feature Type of the 'GIS Layer' to be created
source  (string, or NIL) the name of the "GIS Layer Source", can also be an empty string

Return

the 'GIS Layer' Id as INTEGER on success, or NIL

Example

(vl-load-gis)  T
(setq newLayerIdStrings (gis:create-layer "NewGisLayer_Strings" bcGisTypeString NIL))  1736814432907
(setq newLayerId (gis:create-layer "NewGisLayer_Points" bcGisTypePoint ""))  1736814432908

Remarks

for the  'GIS Feature Type' please see the Type Constants enumeration "Civil GIS Geometric Type";
a newly created 'GIS Layer' is initially empty - new Features, Attributes and Entities can be added afterwards by
(gis:layer-add-feature) and (gis:layer-add-attribute)



©  Bricsys NV. All rights reserved.