Back to Devexpress

Provide Vector Items from Well-Known Text

windowsforms-113981-controls-and-libraries-map-control-vector-data-provide-vector-items-from-well-known-text.md

latest1.3 KB
Original Source

Provide Vector Items from Well-Known Text

  • Aug 31, 2022

This document explains how to provide vector items manually generated from WKT (Well-Known Text) for the Map Control.

Manually Generate from WKT

To provide vector items created from WKT (Well-Known Text), use the SqlGeometryItemStorage class. Create an object of this class and assign it to the VectorItemsLayer.Data property. Then, create SqlGeometryItem objects and add them to the SqlGeometryItemStorage.Items collection.

The following image illustrates vector items converted from WKT.

To learn more on how to provide data using the SqlGeometryItemStorage class, refer to How to: Manually Generate Vector Items from WKT.