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

cant load these wgs84 files in the radmap

3 Answers 135 Views
Map
This is a migrated thread and some comments may be shown as answers.
johan
Top achievements
Rank 1
johan asked on 06 Jan 2012, 09:23 AM
I added them as a resource, used a realative path.
I added PreviewReadCompleted and when i get in the event i have 0 errors and 254 items.
Then a second later i get a (Value did not fall inside expected range)

I can load the Shapefile with a simple program like egis so i dont think its corrupt...

Can i upload then to you so you could reproduce the error? How do i go about this, its rather important i impelement this :D

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 10 Jan 2012, 02:31 PM
Hi,

By default RadMap uses the Mercator projection with real world's geographic coordinates in degrees (-85/85 latitude and -180/180 longitude). It is known as EPSG:4326.
Usually the problem occurs when the shape-file uses coordinates in meters (EPSG:900913 projection which is also known as EPSG:3857 and Pseudo-Mercator projection). It can also occur when the bounds of shapes in the shape-file are out of the bounds of the projection.
Unfortunately we can't reproduce the problem without your shape-file. Could you, please, open a support ticket and attach your shape-file for detail analysis?

Greetings,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
johan
Top achievements
Rank 1
answered on 10 Jan 2012, 02:42 PM
0
Andrey
Telerik team
answered on 13 Jan 2012, 09:03 AM
Hello,

In fact your shape file uses the WGS 84 / PDC Mercator (EPSG:3832) projection. Unfortunately the RadMap does not supports it.
You should create shape file using the EPSG:4326 or you should use a third party utilities to convert the shape file before using it in RadMap project. I have converted the shape file to Mercator (EPSG:4326) using gdal (http://www.gdal.org/) with the following command:
 
ogr2ogr -t_srs WGS84 -s_srs PROJCS["WGS 84 / PDC Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",-150],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],AUTHORITY["EPSG","3349"],AXIS["Easting",EAST],AXIS["Northing",NORTH]] FNW_segmenten_Hageland110720_WGS84_Merkator.shp FNW_segmenten_Hageland110720_WGS84.shp

Kind regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Map
Asked by
johan
Top achievements
Rank 1
Answers by
Andrey
Telerik team
johan
Top achievements
Rank 1
Share this question
or