Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

import gpx file to shape file

$
0
0
i am using arcobject .net10.1,arcmap10.1,arcgis10.1. i want a shape file which is created from .gpx file(GPS file) .i have search every where but cound'nt find any information related to my query. i am creating some code as per my knowlegde that code is not working properly. ESRI.ArcGIS.Geoprocessor.Geoprocessor gpq = new ESRI.ArcGIS.Geoprocessor.Geoprocessor(); gpq.OverwriteOutput = true;

ESRI.ArcGIS.ConversionTools.GPXtoFeatures toolq = new ESRI.ArcGIS.ConversionTools.GPXtoFeatures();
string qfpath = @"F:\Aniket Babar\esri project data\sample waypoint files\fells_loop.gpx";
string qspath = @"C:\Documents and Settings\Administrator.REV3\My Documents\ArcGIS\Default.gdb\fells_loop_GPXtoFeatures1";
toolq.Input_GPX_File = qfpath;
toolq.Output_Feature_class = qspath;

gpq.Execute(toolq, null);
it gives me error like"Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang." if any one having a solution regarding this please send me this link or any related information.

Viewing all articles
Browse latest Browse all 1374

Trending Articles