본문으로 건너뛰기

Class FeaturePropertyInfo

네임스페이스
CsGdk.WinForms.Core
어셈블리
CsGdk.WinForms.dll

식별한 피처 하나의 레이어, ID, 지오메트리 형식, 속성을 값으로 담은 정보입니다.

public sealed class FeaturePropertyInfo
상속
FeaturePropertyInfo
상속된 멤버

설명

IdentifyFeatureAt(float, float, int)과 IdentifyFeatureById(string, long)가 만들어 돌려주며, 피처 속성 패널에 보여 주는 데 씁니다.

생성자

FeaturePropertyInfo(string, string, long, string, IReadOnlyList<FeaturePropertyItem>, bool)

파트 수를 모르는 피처 정보를 만듭니다. PartCount는 -1이 됩니다.

public FeaturePropertyInfo(string layerId, string tableName, long featureId, string geometryTypeName, IReadOnlyList<FeaturePropertyItem> attributes, bool isGraphicsLayer = false)

매개변수

layerId string

피처가 속한 레이어의 ID입니다.

tableName string

표시할 테이블 이름입니다.

featureId long

피처 ID입니다.

geometryTypeName string

표시용 지오메트리 형식 이름입니다.

attributes IReadOnlyList<FeaturePropertyItem>

속성 항목입니다.

isGraphicsLayer bool

그래픽 레이어의 피처이면 true입니다.

설명

이전 버전의 생성자 형태입니다. 이미 컴파일된 사용 코드가 계속 연결되도록 남겨 두었습니다.

FeaturePropertyInfo(string, string, long, string, IReadOnlyList<FeaturePropertyItem>, bool, int)

피처 정보를 만듭니다.

public FeaturePropertyInfo(string layerId, string tableName, long featureId, string geometryTypeName, IReadOnlyList<FeaturePropertyItem> attributes, bool isGraphicsLayer, int partCount)

매개변수

layerId string

피처가 속한 레이어의 ID입니다.

tableName string

표시할 테이블 이름입니다.

featureId long

피처 ID입니다.

geometryTypeName string

표시용 지오메트리 형식 이름입니다.

attributes IReadOnlyList<FeaturePropertyItem>

속성 항목입니다.

isGraphicsLayer bool

그래픽 레이어의 피처이면 true입니다.

partCount int

지오메트리의 파트 수이며, 모르면 -1입니다.

속성

Attributes

피처의 속성 항목을 가져옵니다.

public IReadOnlyList<FeaturePropertyItem> Attributes { get; }

속성 값

IReadOnlyList<FeaturePropertyItem>

필드 순서대로 나열한 속성 목록입니다. 벡터 타일 피처이면 타일과 소스를 설명하는 파생 행이 앞에 옵니다.

FeatureId

피처 ID를 가져옵니다.

public long FeatureId { get; }

속성 값

long

식별한 시점에 레이어가 쓰는 ID 공간의 피처 ID입니다. 레이어의 편집 세션이 열려 있으면 편집 뷰의 ID입니다. 벡터 타일 피처이면 원본 피처 ID가 있을 때 그 값이고 없으면 타일 안의 피처 인덱스입니다.

GeometryTypeName

표시용 지오메트리 형식 이름을 가져옵니다.

public string GeometryTypeName { get; }

속성 값

string

화면에 보여 줄 형식 문자열입니다. 파트 수를 알면 그 정보도 포함됩니다.

IsGraphicsLayer

그래픽 레이어의 피처인지 가져옵니다.

public bool IsGraphicsLayer { get; }

속성 값

bool

그래픽(자유 그리기) 데이터 소스의 피처이면 true입니다.

LayerId

피처가 속한 레이어의 ID를 가져옵니다.

public string LayerId { get; }

속성 값

string

지도 레이어 ID입니다.

PartCount

지오메트리의 파트 수를 가져옵니다.

public int PartCount { get; }

속성 값

int

파트 수이며, 모르면 -1입니다. 알고 있을 때는 GeometryTypeName에 이미 반영되어 있습니다.

TableName

표시할 테이블 이름을 가져옵니다.

public string TableName { get; }

속성 값

string

세션이 만든 정보에서는 데이터 소스 이름이며, 없으면 레이어 이름, 그것도 없으면 레이어 ID입니다. 벡터 타일 피처이면 소스 레이어 이름이 먼저입니다.