cant load these wgs84 files in the radmap

4 posts, 0 answers
  1. johan
    johan avatar
    4 posts
    Member since:
    Mar 2011

    Posted 06 Jan 2012 Link to this post

    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
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 10 Jan 2012 Link to this post

    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 >>

  3. johan
    johan avatar
    4 posts
    Member since:
    Mar 2011
  4. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 13 Jan 2012 Link to this post

    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 >>

Back to Top