[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Collapse]Map Control
   [Expand]Getting Started
    Layers
   [Expand]Coordinate Systems
   [Expand]Map Image Data
   [Expand]GIS Data
   [Collapse]Vector Data
    [Collapse]Providing Data
     [Expand]Add Vector Items Manually
     [Collapse]Load Vector Items from Vector Format Source
       Load Vector Data from a Shapefile
       Load Vector Data from a KML File
       Load Vector Data from a SQL Geometry Field of the Data Table
       Load Vector Data from a SVG File
      Generate Vector Items Automatically
      Generate Chart Items Automatically
      Provide Data Using Vector Item Attributes
     Colorizers
     Clusterers
   [Expand]Visual Elements
   [Expand]End-User Interaction
   [Expand]Examples
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Load Vector Data from a SQL Geometry Field of the Data Table

This document describes the basics of working with SQL Geometry using the Map Control.

This subject is broken down into the following sections.

Expanded Overview

Using the Map control, you can load and show any set of shapes stored in the database in the SQL Geometry format.

Note

For more information, see the following link: geometry Data Type.

The image below demonstrates the data source shape loaded from SQL Geometry, representing the Australian shoreline.

Expanded Load SQL Geometry Data

To load vector data from a SQL Geometry data source, do the following.

Note

All field values of the SQL data table loaded from the data base, and not specified as the SqlGeometryDataAdapter.SpatialDataMember property value, will be provided as attributes for each loaded SqlGeometryItem object.

Expanded Examples

To learn how to load data from the SQL Geometry field of a data table, see the How to: Load Data from a SQL Geometry Datasource example.

Is this topic helpful?​​​​​​​