This is a migrated thread and some comments may be shown as answers.

SqlGeospatialDataReader geometry type templates

2 Answers 24 Views
Map
This is a migrated thread and some comments may be shown as answers.
Aliaksei
Top achievements
Rank 1
Aliaksei asked on 12 Dec 2018, 11:45 AM

Hello,

First thank you for xaml-sdk\Map\WPF\SQLGeospatialData\ example

As i can see telerik:SqlGeospatialDataReader has property PointTemplate, but how i can set template for all other Sql Geospatial Data Types?

The SqlGeospatialDataReader supports the following geometry types:
Point
LineString
Polygon
Triangle
MultiPoint
MultiLineString
MultiPolygon
GeometryCollection

2 Answers, 1 is accepted

Sort by
0
Aliaksei
Top achievements
Rank 1
answered on 12 Dec 2018, 12:05 PM

Also why this code results filled area between lines?

var MultiLineString = new WktDataRow();
MultiLineString.Name = "MultiLineString";
MultiLineString.Geometry = "MultiLineString (("
                            + "-84.3827345898996 33.858244576749"
                            + ", -84.2943745783107 33.6978423497645"
                            + ", -84.4314542344275 33.7952549107929"
                           + "))";
 
WktDataCollection.Add(MultiLineString);

 

 

0
Accepted
Martin Ivanov
Telerik team
answered on 17 Dec 2018, 11:06 AM
Hello Aliaksei,

The PointTemplate is applied only to the Point geometries. This is because only there is meaningful to define a custom visual. The other geometries are some shapes so if you replace their visual representation you are losing the idea of using geospatial data. If you want to add some custom visuals you can use the Items collection of the VisualizationLayer and add FrameworkElement objects like Path, Border, etc.

As for the fill of the multiline geometry, this happens because the ShapeFill property of the layer. If you want to remove it you can set the ShapeFill property of the layer to a new MapShapeFill object with a transparent Fill and some colored Stroke.

I hope this helps.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Map
Asked by
Aliaksei
Top achievements
Rank 1
Answers by
Aliaksei
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or