Provide Vector Items from Well-Known Text
Manually Generate from WKT
To provide manually generated vector items from WKT, do the following.
- Create a SqlGeometryItemStorage object.
- Fill the SqlGeometryItemStorage.Items collection using manually generated SqlGeometryItem objects.
- Assign the SqlGeometryItemStorage object to the VectorLayer.Data property.
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.