본문으로 건너뛰기

피처 조회, 속성 테이블 및 선택

화면에서 찾은 피처의 참조로 피처 스냅샷과 스키마를 읽을 수 있습니다. 속성 테이블은 피처 ID와 속성값만 배치로 읽고, 읽기와 쓰기를 게이트로 조정할 수 있습니다. 지도 선택은 레이어에 저장되며, 공간 조회 결과만 필요하면 선택을 쓰지 않는 조회를 사용합니다.

C++ 주제 그룹

.NET에서 사용하기

화면에서 피처를 찾거나 선택 집합과 속성 테이블을 관리합니다. 조회 결과만 필요하면 Query, 지도 선택 상태를 바꾸려면 Selection 서비스를 사용합니다.

호출 순서: 좌표·필터 지정 → 후보 조회 → 선택 모드 적용 → 결과 피처 읽기.

Note

선택 상태, 편집 ID, 원본 ID는 서로 다른 역할입니다. 화면 좌표와 지도 좌표를 섞지 않습니다.

개념과 사용 순서 · 관계와 처리 흐름 · .NET 시작하기

C# 실행 예제

아래는 SDK 샘플의 실제 코드 영역입니다. 초기화·오류 처리·해제를 포함한 전체 흐름은 사용 가이드에서 확인하세요.

// A click selects at a screen point: the square of +-radius pixels around it
// is the selection area. SingleHit picks one feature of the topmost layer
// that has a hit. The screen point comes from the map point of Spice Market.
private static bool SelectAtPoint(glsSelectionService selection, glsMapView view)
{
    glsSelectionResult result = ClickAt(selection, view, SpiceMarket, true);
    Console.WriteLine("[sample] click on Spice Market: layer {0}, feature {1}, {2} selected",
        result.LayerId, result.PrimaryFeatureId, result.SelectedCount);
    return (result.LayerId == "places" && result.PrimaryFeatureId == 5 && result.Applied
            && result.SelectedCount == 1)
        || Unexpected("expected one place");
}

속성 테이블 배치, 행 위치와 읽기 권한

glsAttributeTableReader

glsAttributeTableStream

glsAttributeTableBatch

glsAttributeTableLocateResult

glsAttributeTableProviderPolicy

glsAttributeTableReadGate

glsAttributeTableReadLease

속성 입력 검증과 텍스트 내보내기

glsAttributeValidation

glsAttributeValidationResult

glsAttributeValidationError

glsAttributeInputKind

glsAttributeValidationPolicy

glsAttributeTableTextEncoder

화면 피처 후보 조회

glsFeatureQueryService

glsFeatureQueryOptions

glsFeatureQueryResult

glsFeatureQueryEntry

glsFeatureQueryDiagnostic

glsFeatureQueryWarning

glsFeatureQueryCompletion

화면 피처 식별

glsFeatureIdentifyService

glsFeatureIdentifyResult

glsIdentifyEntry

glsIdentifyCompletion

피처 참조, 스키마 및 스냅샷

glsFeatureReadService

glsFeatureIdSpace

glsFeatureReference

glsKnownBoolean

glsFeatureFieldInfo

glsFeatureSchema

glsFeatureSnapshot

glsVectorTileFeatureSnapshot

glsFeatureAttributeSummary

glsAttributeSummaryState

지도 및 속성 테이블 선택

glsSelectionService

glsSelectionRequest

glsSelectionResult

glsSelectionChangedEventArgs

glsAttributeTableSelection

glsAttributeTableSelectionState