Gis:layer-add-feature
BricsCADのLISP - Civil-GIS関数 - AutoLISP Home - AutoLISP 目次 - CAD&CGブログ - オンラインショップ- GizmoTools ヘルプセンター
- 構文
- (gis:layer-add-features layerId ename|enameList )
- 機能
- layerId で指定された 'GIS レイヤー' オブジェクトに、単一のエンティティ (ename) または ename のリスト entityListを 'GIS フィーチャー' として追加し、新しく生成された 'GIS フィーチャー' 識別子を返す。
- 引数
- 
- layerId: 新しい'GIS フィーチャー'を含む GISレイヤーの'ハンドル'識別子の整数
- ename|enameList: 指定された'GISレイヤー'に'GISフィーチャー'として追加する単一のエンティティ または エンティティのリスト。
 
- 戻り値
- 成功なら整数のリスト、それ以外は nil
メモ
- 「GIS フィーチャー属性」はGISデータベーステーブルの「列」を表す。
- dwgエンティティから構築された 各'GISフィーチャ'は、そのようなテーブルの行である。
- サンプル
(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))
1736947670764
(setq ent (car (entsel)))
<Entity name: 560dbc70>
(setq feature (gis:layer-add-feature layerId ent))
1736947670765
(setq features (gis:layer-get-features layerId))
(1685094904232 1685094904233 1736947670765 1736947670766) 
関連事項
- Civil-gis関数-BricsCAD
- gis:get-layers
- gis:layer-get-name
- gis:layer-get-type
- gis:layer-get-attributes
- gis:layer-get-features
- gis:layer-get-entities
- gis:layer-get-source
- gis:layer-has-attribute
- gis:layer-has-entity
- gis:layer-has-feature
- gis:layer-add-feature
- gis:layer-remove-feature
- gis:layer-add-attribute
- gis:layer-remove-attribute
- gis:layer-rename-attribute
- gis:layer-set-name
- gis:rename-layer
