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

Help converting data files...

1 Answer 21 Views
Map
This is a migrated thread and some comments may be shown as answers.
Raymond
Top achievements
Rank 1
Raymond asked on 09 Oct 2014, 05:41 PM
Hi,

This isn't really a Telerik question...but I'm hoping that that maybe someone reading this forum has already been down this road and can help.  I'm trying to convert our mapping from Infragistics to Telerik.  We have several ESRI shape files that I'm trying to convert to json for use with the telerik mapping control.  I've found the jdal tool ogr2ogr.exe that performs the conversion.  The following command converts the schools.shp shape file to a schools.json file.

ogr2ogr -f "GeoJSON" Schools.json Schools.shp

The problem is that the shape files use a coordinate system other that latitude/longitude...so the conversion outputs a json file with ridiculous numbers for the latitude and longitude.  Apparently, there are supposed to be prj files that accompany the shape files that define the coordinate system used, but those are missing.  The ogr2ogr utility accepts command line parameters to perform coordinate system conversions.  And I have the markup (see below) that allowed the infragistics control to properly interpret the shape file coordinates...so I'm fairly sure it contains the critical information to allow the ogr2ogr utility to perform the conversion.  But so far my efforts to translate the infragistics markup into the appropriate ogr2ogr command line parameters have failed.  I'm hoping that someone with more experience in GIS will be able to help?

<igMap:ShapeFileReader.CoordinateSystem>
  <igMap:CoordinateSystem UnitType="FT" FalseEasting="1312335.958" FalseNorthing="0.0">
    <igMap:CoordinateSystem.Projection>
      <igMap:LambertConformalConic EllipsoidType="GRS1980" CentralMeridian="-120.5"
            StandardParallelNorth="43.0" StandardParallelSouth="45.5" LatitudeOrigin="41.75"/>
    </igMap:CoordinateSystem.Projection>
  </igMap:CoordinateSystem>
</igMap:ShapeFileReader.CoordinateSystem>

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 14 Oct 2014, 05:19 AM
Hi Raymond,

Since the translation tool and the original ESRI format are not related to Telerik products, I suggest trying to find proper help through the corresponding forums and public materials related to ESRI and org2org tool.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Map
Asked by
Raymond
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or