Oh, I missed the utils being passed in, that's roughly the same thing. If
you use just "utils" you would want to remove it from the parameter list of
the call.

On Thu, Nov 10, 2016 at 6:02 AM Djordje Spasic <issworld2...@yahoo.com>
wrote:

> Thank you for the reply Alex,
>
> I apologize for misunderstanding you.
>
> If I try to call the OGR2OGR method like that:
>
> convertToShapefiles_Result = *utils*.*OGR2OGR*(utils, osm_filePath,
> shps_filePath, bstrOptions, *None*)
>
> Then I get an error message:
>
> Could not convert argument 0 for call to OGR2OGR
>
> I posted a question about this on this very mailing list earlier this
> year. Stéphane Lozier suggested that I should instead use:
>
> convertToShapefiles_Result = MapWinGIS.UtilsClass.*OGR2OGR*(*utils*,
> osm_filePath, shps_filePath, bstrOptions, *None*)
>
> 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.
> Otherwise I always get an error message:
>
> Could not convert argument 0 for call to "name of the method"
>
>
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
https://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to