<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px">Thank you for the reply Alex,<br><br>I apologize for misunderstanding you.<br><br>If I try to call the OGR2OGR method like that:<br><blockquote id="yui_3_16_0_ym19_1_1478782040578_3752"><div dir="ltr" id="yui_3_16_0_ym19_1_1478782040578_3751"><span style="font-size:10pt;" id="yui_3_16_0_ym19_1_1478782040578_3738"><span style="font-size:10pt;" id="yui_3_16_0_ym19_1_1478782040578_3739">convertToShapefiles_Result = <b id="yui_3_16_0_ym19_1_1478782040578_3740"><u id="yui_3_16_0_ym19_1_1478782040578_3741"><font id="yui_3_16_0_ym19_1_1478782040578_3742" color="#ff0000">utils</font></u></b>.</span><b style="font-size:13px;" id="yui_3_16_0_ym19_1_1478782040578_3743"><span style="font-size:10pt;color:midnightblue;" id="yui_3_16_0_ym19_1_1478782040578_3744">OGR2OGR</span></b><span style="font-size:10pt;" id="yui_3_16_0_ym19_1_1478782040578_3745">(utils, osm_filePath, shps_filePath, bstrOptions,<span id="yui_3_16_0_ym19_1_1478782040578_3746"> </span></span><b style="font-size:13px;" id="yui_3_16_0_ym19_1_1478782040578_3747"><span style="font-size:10pt;color:blue;" id="yui_3_16_0_ym19_1_1478782040578_3748">None</span></b><span style="font-size:10pt;" id="yui_3_16_0_ym19_1_1478782040578_3749">)</span>  <br id="yui_3_16_0_ym19_1_1478782040578_3750"></span></div></blockquote>Then I get an error message:<br><blockquote id="yui_3_16_0_ym19_1_1478782040578_3458"><div id="yui_3_16_0_ym19_1_1478782040578_3386" dir="ltr"><font id="yui_3_16_0_ym19_1_1478782040578_3715" color="#808080">Could not convert argument 0 for call to OGR2OGR</font><br></div></blockquote><div id="yui_3_16_0_ym19_1_1478782040578_3816">I posted a question about this on this very mailing list earlier this year. Stéphane Lozier suggested that I should instead use:</div><blockquote id="yui_3_16_0_ym19_1_1478782040578_3823"><div id="yui_3_16_0_ym19_1_1478782040578_3822" dir="ltr"><span style="font-size:10pt;" id="yui_3_16_0_ym19_1_1478782040578_3895"><span style="font-size:10pt;" id="yui_3_16_0_ym19_1_1478782040578_3896">convertToShapefiles_Result </span></span><span style="font-size:10pt;" id="yui_3_16_0_ym19_1_1478782040578_3851"><span style="font-size:10pt;" id="yui_3_16_0_ym19_1_1478782040578_3852"><span style="font-size:10pt;" id="yui_3_16_0_ym19_1_1478782040578_3897">= MapWinGIS.UtilsClass</span>.</span><b style="font-size:13px;" id="yui_3_16_0_ym19_1_1478782040578_3856"><span style="font-size:10pt;color:midnightblue;" id="yui_3_16_0_ym19_1_1478782040578_3857">OGR2OGR</span></b><span style="font-size:10pt;" id="yui_3_16_0_ym19_1_1478782040578_3858">(<font color="#cd232c"><b>utils</b></font>, osm_filePath, shps_filePath, bstrOptions,<span id="yui_3_16_0_ym19_1_1478782040578_3859"> </span></span><b style="font-size:13px;" id="yui_3_16_0_ym19_1_1478782040578_3860"><span style="font-size:10pt;color:blue;" id="yui_3_16_0_ym19_1_1478782040578_3861">None</span></b><span style="font-size:10pt;" id="yui_3_16_0_ym19_1_1478782040578_3862">)</span>  </span></div></blockquote>And it worked perfectly. Since then, I am calling all MapWinGIS methods which require opening of some sort of a file like this. And they work with no problem.<br><div id="yui_3_16_0_ym19_1_1478782040578_3951">Otherwise I always get an error message:</div><blockquote id="yui_3_16_0_ym19_1_1478782040578_3959"><font id="yui_3_16_0_ym19_1_1478782040578_3973" color="#808080">Could not convert argument 0 for call to "name of the method"<br></font></blockquote></div></body></html>