New to Telerik UI for WinForms? Start a free 30-day trial

Builds and assigns extended-data values shared by geospatial shape readers.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public static class ShapeReaderHelper

Inheritance: objectShapeReaderHelper

Methods

Creates an extended-property set with double-valued latitude and longitude entries.

C#
public static ExtendedPropertySet CreateExtendedPropertySet()
Returns:

ExtendedPropertySet

The default location-property set.

Decodes matching fields from a DBF record and converts them to the types declared in the extended-property set.

C#
public static void ReadDbfRecord(ExtendedData record, DbfHeader header, byte[] recordContent)
Parameters:recordExtendedData

The extended-data record to populate.

headerDbfHeader

The DBF field definitions and character encoding.

recordContentbyte[]

The raw bytes of one DBF record.

Assigns extended data to each compatible shape and records its location; when multiple shapes are supplied, each receives a clone so its coordinates remain independent.

C#
public static void SetExtendedData(Collection<MapVisualElement> shapesCollection, ExtendedData extendedData)
Parameters:shapesCollectionCollection<MapVisualElement>

The map elements that may receive the data.

extendedDataExtendedData

The source data to assign or clone for each element.

Adds the location coordinates to an element's extended data when the corresponding properties exist, then assigns that data to the element.

C#
public static void SetLocationData(PointG location, IExtendedData dataElement, ExtendedData extendedData)
Parameters:locationPointG

The geographic location to store.

dataElementIExtendedData

The element that receives the extended data.

extendedDataExtendedData

The data object to update and assign.