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 :
Any idea to resolve this problem.
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.
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/