[Ironpython-users] How to free memory in ironpython
Djordje Spasic
issworld2000 at yahoo.com
Sun Nov 27 11:32:33 EST 2016
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 <pawel.jasinski at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20161127/05135c3d/attachment.html>
More information about the Ironpython-users
mailing list