I am using asp.net
this is my code:
string cmd = "cmd";
string enter = "/c";
string exe =
" ogr2ogr -f \"GeoJSON\" -t_srs WGS84 " +
"C:\\Users\\subhi2\\Desktop\\WebSite9\\MapInfoFile\\aghat.json " +
"C:\\Users\\subhi2\\Desktop\\WebSite9\\MapInfoFile\\aghat.TAB";
try
{
Process p = new Process();
p.StartInfo = new ProcessStartInfo(cmd, enter + exe);
p.Start();
}
catch (Exception)
{
}
I am tried to wrote in cmd. And its working.
ogr2ogr -f "GeoJSON" -t_srs WGS84 C:\Users\subhi2\Desktop\WebSite9\MapInfoFile\aghat.json C:\Users\subhi2\Desktop\WebSite9\MapInfoFile\aghat.TAB
How can I succeed ? (maybe folder or file access permission) Have a opinion ?
But not working in asp.(no error)