피처 조회, 속성 테이블 및 선택
화면에서 찾은 피처의 참조로 피처 스냅샷과 스키마를 읽을 수 있습니다. 속성 테이블은 피처 ID와 속성값만 배치로 읽고, 읽기와 쓰기를 게이트로 조정할 수 있습니다. 지도 선택은 레이어에 저장되며, 공간 조회 결과만 필요하면 선택을 쓰지 않는 조회를 사용합니다.
.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
- OpenStream(glsVectorDataSource, glsFeatureRequest, glsFeatureIdSpace, bool, ulong, ulong)
- ProviderPolicy(string)
- CreateIndex(glsVectorDataSource, string, CancellationToken)
- Count(glsVectorDataSource, glsFeatureRequest, CancellationToken)
- Locate(glsVectorDataSource, glsFeatureRequest, long[], long, CancellationToken)
glsAttributeTableStream
glsAttributeTableBatch
glsAttributeTableLocateResult
glsAttributeTableProviderPolicy
glsAttributeTableReadGate
- glsAttributeTableReadGate(glsVectorDataSource)
- EnterRead(CancellationToken)
- EnterWrite(CancellationToken)
- SetReadsSuspended(bool)
- Drain(int)
- Close()
- Dispose()
- ~glsAttributeTableReadGate()
glsAttributeTableReadLease
속성 입력 검증과 텍스트 내보내기
glsAttributeValidation
- Parse(glsFieldType, bool, int, int, string, glsAttributeInputKind, long, double, bool, int, glsAttributeValidationPolicy)
- NormalizeTemporal(glsFieldType, string)
- ParseText(glsFieldType, bool, int, int, string, glsAttributeValidationPolicy, string, string)
- StandardPolicy
glsAttributeValidationResult
glsAttributeValidationError
- None
- Required
- InvalidType
- IntegerRange
- Width
- Precision
- Temporal
- Boolean
- Binary
- InvalidUtf8
- IntegerSyntax
- Int64Syntax
- RealSyntax
glsAttributeInputKind
glsAttributeValidationPolicy
- PreserveWhitespace
- Utf16Width
- ExtendedBoolean
- EnforcePrecision
- BooleanNullPadding
- AllowNegativeYears
- WhitespaceStringIsValue
glsAttributeTableTextEncoder
화면 피처 후보 조회
glsFeatureQueryService
- QueryPointCandidates(glsMapView, string, long, float, float, int, glsFeatureQueryOptions)
- QueryScreenRect(glsMapView, string[], float, float, float, float, glsFeatureQueryOptions)
glsFeatureQueryOptions
- glsFeatureQueryOptions()
- CancellationToken
- ContinueOnLayerError
- HitOnlyOnFailure
- HitOnlyWithoutSpatialIndex
- MaxFeatures
glsFeatureQueryResult
glsFeatureQueryEntry
glsFeatureQueryDiagnostic
glsFeatureQueryWarning
glsFeatureQueryCompletion
화면 피처 식별
glsFeatureIdentifyService
- CollectInfoLayers(glsMapView)
- ChooseDisplayField(glsFeatureFieldInfo[])
- QueryRect(glsMapView, string[], float, float, float, float, int, long, CancellationToken, Action<string, glsFeatureReference>)
glsFeatureIdentifyResult
- glsFeatureIdentifyResult()
- LimitRemaining
- LimitLayerId
- LimitReached
- Generation
- Completion
- Diagnostics
- Entries
glsIdentifyEntry
glsIdentifyCompletion
피처 참조, 스키마 및 스냅샷
glsFeatureReadService
- ReadSchema(glsVectorDataSource)
- ReadFeature(glsMapView, string, glsFeatureReference, glsEditSessionState)
- ReadAttributeSummary(glsMapView, string, glsFeatureReference[], int[], glsEditSessionState)
- ReadVectorTileHit(glsHitTestResult)
glsFeatureIdSpace
glsFeatureReference
glsKnownBoolean
glsFeatureFieldInfo
glsFeatureSchema
glsFeatureSnapshot
- glsFeatureSnapshot()
- Attributes
- Schema
- IsGraphics
- PartCount
- GeometryType
- Reference
- SourceName
- LayerName
- LayerId
glsVectorTileFeatureSnapshot
- glsVectorTileFeatureSnapshot()
- AttributeValues
- AttributeNames
- SourceFeatureId
- HasSourceFeatureId
- FeatureIndex
- OverscaledY
- OverscaledX
- OverscaledZ
- CanonicalY
- CanonicalX
- CanonicalZ
- GeometryType
- StyleLayerId
- SourceLayer
- SourceId
- LayerId
glsFeatureAttributeSummary
glsAttributeSummaryState
지도 및 속성 테이블 선택
glsSelectionService
- glsSelectionService(glsMapView)
- raise_SelectionChanged(object, glsSelectionChangedEventArgs)
- GetSelectedIds(string)
- GetSelectedCount(string)
- IsLayerSelectable(string)
- GetSelectedLayerId()
- SetSelectedIds(string, long[])
- AddSelectedIds(string, long[])
- ToggleSelectedIds(string, long[])
- ClearSelection(string)
- ClearSelectionsExcept(string)
- Query(glsMapPoint[], glsSelectionSpatialOperation)
- Execute(glsMapPoint[], glsSelectionRequest)
- ExecuteAtScreenPoint(float, float, int, glsSelectionRequest, Func<string, bool>)
- ExecuteAtScreenPoint(float, float, int, glsSelectionRequest)
- ClearAll()
- GetSelectionExtent(out int)
- Dispose()
- ~glsSelectionService()
- SelectionChanged
glsSelectionRequest
glsSelectionResult
glsSelectionChangedEventArgs
glsAttributeTableSelection
- glsAttributeTableSelection(Int64)
- Add(long)
- Cancel()
- Fail()
- Invert(long[])
- CopyIds()
- EffectiveLimit(int, int, bool)
- EffectiveLimit(int, int)
- Dispose()
- ~glsAttributeTableSelection()
- MatchedCount
- State