Shapefile Problem

2 posts, 0 answers
  1. baq
    baq avatar
    1 posts
    Member since:
    Sep 2014

    Posted 10 Sep 2014 Link to this post

    i am using silverlight radmap control ,I have different shape files, some of the files show data like countries borders without any problems, another files does not show any thing , i don't know if those files have problems.
    can any one help me to check if i have problem on the shape files or have other problem in my code.

    the files in the link below.


    <telerik:RadMap x:Name="radMap"
                    Center="36, 40">
                    <telerik:OpenStreetMapProvider />
                <telerik:VisualizationLayer x:Name="visualizationLayer" >
                        <telerik:MapShapeFill Fill="#6FDFEFFF"
                                      StrokeThickness="2" />
                        <telerik:AsyncShapeFileReader x:Name="mapShapeDataReader"
                                                      DataSource="/TelerikSilverlightApp1;component/Westbank_Destrict.dbf" ToolTipFormat="AREA" PreviewReadShapeDataCompleted="mapShapeDataReader_PreviewReadShapeDataCompleted" />

  2. Petar Mladenov
    Petar Mladenov avatar
    2991 posts

    Posted 12 Sep 2014 Link to this post

    Hello baq,

    I used your shape files and checked the PreviewReadShapeDataCompleted event handler. In it the e.Items returns collection of 11 objects of type PolygoneData. All of them have location with big Longitudes and Latitudes, for example:
        [Telerik.Windows.Controls.Map.PolygonData]: {Telerik.Windows.Controls.Map.PolygonData}
        ExtendedData: {Telerik.Windows.Controls.Map.ExtendedData}
        Layer: null
        Location: {217546.310175,157026.798323}
        location: {217546.310175,157026.798323}
        PropertyChanged: null
        ToolTipFormat: "AREA"
        ToolTipStyle: null
        ToolTipTemplate: null
        verticalOrder: 0
        visualizationLayer: null
        ZIndex: 0

    This means that your shape file is not in the default projection RadMap Uses - EPSG:4326 (in it the latitude is between -85 and 85 and longitude is between -180 and 180). Actually if you have also "prj" file you can see the projection in your shape file. Then you can convert the files into EPSG:4326 with some tools, for example GDAL (

    Petar Mladenov
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top