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

Shapefile Problem

1 Answer 18 Views
This is a migrated thread and some comments may be shown as answers.
ahmad ali
Top achievements
Rank 1
ahmad ali asked on 10 Sep 2014, 12:35 PM
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" />


1 Answer, 1 is accepted

Sort by
Petar Mladenov
Telerik team
answered on 12 Sep 2014, 09:00 AM
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.
Asked by
ahmad ali
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question