Hi Pawel,
Thank you for the suggestion.
I am not familiar with subprocess.popen.
How would command line utility look like for this code:
import clr iteropMapWinGIS_dll_filePath = "C:\\ProgramFiles\\MapWindow GIS
Lite\\Interop.MapWinGIS.dll"clr.AddReferenceToFileAndPath(iteropMapWinGIS_dll_filePath)import
MapWinGIS utils = MapWinGIS.UtilsClass()osm_filePath =
"C:\\rome.osm"shps_filePath = "C:\\rome_sph_files"bstrOptions =
'--configOSM_USE_CUSTOM_INDEXING NO -skipfailures -f "ESRI
Shapefile"'convertToShapefiles_Result =MapWinGIS.UtilsClass.OGR2OGR(utils,
osm_filePath, shps_filePath, bstrOptions, None)if convertToShapefiles_Result==
False: print "MapWinGIS.UtilsClass.OGR2OGRfailed the first time" print
utils.ErrorMsg print utils.LastErrorCode print
MapWinGIS.GlobalSettingsClass().GdalLastErrorNo print
MapWinGIS.GlobalSettingsClass().GdalLastErrorMsg print
MapWinGIS.GlobalSettingsClass().GdalLastErrorTypeelse: print
"MapWinGIS.UtilsClass.OGR2OGRsuccessfully ran the first time"
I would welcome any kind of further reply.
Kind regards,
Djordje
-----------------
On Sunday, November 27, 2016 5:11 PM, Pawel Jasinski
<[email protected]> wrote:
From the API documentation, this is just an alternative entry point to command
line utility.
If the API does not behave, why not call the command line utility using
subprocess.popen ?
--pawel
_______________________________________________
Ironpython-users mailing list
[email protected]
https://mail.python.org/mailman/listinfo/ironpython-users