Get spatial data stored in SQL Server 2008

Not Answered This post has 0 verified answers | 2 Replies | 3 Followers Thread's RSS feed.

elhaboussi
Points 75
Replied On: Mon, Jul 5 2010 7:46 AM Reply

Hi,

I try to get spatial data stored un SQL Server 2008 using WCF, but i get this error:

... Make sure the spatial column contains pairs of numeric values.

I follow this tutorial :

http://help.infragistics.com/Help/NetAdvantage/DV/2009.2/CLR3.5/html/sl_dv_xamWebMap_Display_Geospatial_Data_from_SQL_Database_Server.html

Any idea to resolve this problem.

Thank you.

  • Post Points: 35

All Replies

Replied On: Tue, Jul 6 2010 4:07 AM Reply

Hi,

It seems that there is some parsing problem with the data you pass to the map. The property name you set as a Data mapping should have a properly set Path Data element value - Point, Polygon, linestring etc. If you still have a problem, please, send us a line of the DataTable you pass as a source to the map reader and the DataMapping you pass, so we could investigate the issue further.

Regards,

Petia Koleva

  • Post Points: 5
micah
Points 5
Replied On: Tue, Oct 3 2017 8:45 AM Reply

SQL Server 2008 supports the geometry and geography data types for storing spatial data. These types support methods and properties that allow for the creation, comparison, analysis, and retrieval of spatial data. You can get the required information about insertions and retrieval of spatial data here: https://www.mssqltips.com/sqlservertip/1926/data-storage-and-retrieval-for-geospatial-data-in-sql-server-2008/

  • Post Points: 5
Page 1 of 1 (3 items) | RSS