gis:feature-get-geomtype


(gis:feature-get-geomtype  featureId)

Returns the 'GIS Feature Type' (aka "geomType") of the 'GIS Feature' object specified by featureId.

Arguments

featureId  (integer)  'handle' identifier of the 'GIS Feature' to query for the  'GIS Feature Type' (aka "geomType")

Return

INTEGER on success, or NIL
(see the Type Constants enumeration "Civil GIS Geometric Type")

Example

(vl-load-gis)  T
(setq layers (gis:get-layers))  ("shp_3857_point_2d_utf8")
(setq name (car layers))  "shp_3857_point_2d_utf8"
(setq layerId (gis:get-layer name))  1736983018068
(setq features (gis:layer-get-features layerId))  (1685094904232 1685094904233)
(setq featureId (car features))  1685094904232
(gis:feature-get-geomtype featureId)  1

Remarks

for the returned 'GIS Feature Type' (aka "geomType") please see the Type Constants enumeration "Civil GIS Geometric Type"



©  Bricsys NV. All rights reserved.