Gis:feature-get-attribute
BricsCADのLISP - Civil-GIS関数 - AutoLISP Home - AutoLISP 目次 - CAD&CGブログ - オンラインショップ- GizmoTools ヘルプセンター
- 構文
- (gis:feature-get-attribute featureId attName)
- 機能
- featureId で指定した 'GIS フィーチャー' オブジェクトの 'GIS フィーチャ属性' を返す。
- 引数
-
- featureId: GIS フィーチャ属性を問い合わせる「GISフィーチャ」の「ハンドル」識別子の整数。
- attName: 検索する「GISフィーチャー属性」の名前(大文字と小文字は区別されない)
- 戻り値
- 成功なら属性の定義リスト、それ以外は nil
- 属性の定義リストは次のように定義されたリストである。
- (list AttributeName AttributeType AttributeValue)
- AttributeName: 属性名の文字列
- AttributeType: 属性のタイプの整数(タイプ定数列挙「Civil GIS Geometric Type」を参照)。
- AttributeValue: 代入される値 : 文字列または整数または倍精度
メモ
- (gis:layer-add-attribute) も参照。
- 「GISフィーチャ属性」は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)) 1736983018068 (setq features (gis:layer-get-features layerId)) (1685094904232 1685094904233) (setq featureId (car features)) 1685094904232 (gis:layer-get-attributes layerId) ("id" "name" "int_number" "dec_number" "date") (gis:feature-get-attribute featureId "name") ("name" 3 "point1")
関連事項