Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Bind to SQL geometry works for points not for shapes
posted

Using the Infragistics xamGeographicMap control, trying to add shapes from SQL server geometry data.

  • The data is valid; a select in SSMS shows the shapes properly
  • Points show properly when querying SP_GEOMETRY (see sample) -- so GeographicSymbolSeries works, and the shape columns contain actual data
  • GeographicShapeSeries does not work
  • GeographicPolyLine does not work

So this works:

 var majorCitySeries = new GeographicSymbolSeries { ItemsSource = data.cities, LatitudeMemberPath = "SP_GEOMETRY.YCoordinate", LongitudeMemberPath = "SP_GEOMETRY.XCoordinate" }; GeoMap.Series.Add(majorCitySeries); 

But these show nothing:

 var countySeries = new GeographicShapeSeries { ItemsSource = data.counties, ShapeMemberPath = "SP_GEOMETRY" }; GeoMap.Series.Add(countySeries); var br = new GeographicPolylineSeries { ItemsSource = data.rivers, ShapeMemberPath = "SP_GEOMETRY" }; GeoMap.Series.Add(br); 

Do I need to add a converter? The samples, they tell nothing. What gives?

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Sjoerd,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

Children