SqlGeospatialDataReader geometry type templates

3 posts, 1 answers
  1. Aliaksei
    Aliaksei avatar
    4 posts
    Member since:
    Dec 2018

    Posted 12 Dec 2018 Link to this post


    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:

  2. Aliaksei
    Aliaksei avatar
    4 posts
    Member since:
    Dec 2018

    Posted 12 Dec 2018 Link to this post

    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"
                               + "))";



  3. Answer
    Martin Ivanov
    Martin Ivanov avatar
    2135 posts

    Posted 17 Dec 2018 Link to this post

    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.

    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.
Back to Top