Hi Luigi,<br /><br />I think I got the idea of what you meant. Actually, in the very beginning befor using the QGIS plugin functionality I wrote a pure PyQT-Dialog which I called using the QGIS processing script connector. With the inputs I fed a simple python script, which however didn't applied any ArcGis-Python module. Ok, it might be worth, to go that step back to this more simple approach.<br /><br />Thanks much for your thoughts!<br />Torsten<br id="tinymce" class="mce-content-body " style="font-size: 10pt;" contenteditable="true" spellcheck="false" />
<p><br /> Am 09-Apr-2015 22:21:54 +0200 schrieb luipir@gmail.com:</p>
<blockquote style="margin-left: 0; padding-left: 5px; border-left: 2px solid navy;">hi Torsten<br /><br /> I had a similar problem to run an external water model (of a client)<br /> requiring a different set of python libs and linked libraries... I use<br /> python subprocess command, that is more or less the same mechanism<br /> applied by Processing Toolbox to run some external command providers.<br /> In this way you can communicate with your application using stdin,<br /> stdout and stderr... and receive exit codes.<br /> More complex interprocess communication can be obtained parsing<br /> stdout, or piping on common files... or a lot of other mechanism.<br /><br /> a good support by qgis can be obtained creating a Processing script<br /> that execute subprocess command of your application. This script can<br /> manage processing progressbar basing on result read from stdout.<br /><br /> I hope this can help you<br /><br /> regards, Luigi Pirelli<br /><br /> **************************************************************************************************<br /> * LinkedIn: <a href="https://www.linkedin.com/in/luigipirelli" target="_blank">https://www.linkedin.com/in/luigipirelli</a><br /> * Elance: <a href="https://www.elance.com/s/edit/luigipirelli/" target="_blank">https://www.elance.com/s/edit/luigipirelli/</a><br /> * GitHub: <a href="https://github.com/luipir" target="_blank">https://github.com/luipir</a><br /> * Stackexchange: <a href="http://gis.stackexchange.com/users/19667/luigi-pirelli" target="_blank">http://gis.stackexchange.com/users/19667/luigi-pirelli</a><br /> * Mastering QGIS:<br /><a href="https://www.packtpub.com/application-development/mastering-qgis" target="_blank">https://www.packtpub.com/application-development/mastering-qgis</a><br /> **************************************************************************************************<br /><br /><br /> On 9 April 2015 at 22:02, Torsten Lange <<a href="mailto:torsten.lange@mail.de" target="_blank">torsten.lange@mail.de</a>> wrote:<br /> > Hello qgis-user fellows,<br /> ><br /> > I would like to pose a more general question here, because obviously my<br /> > previous mails seemed just too OT ;)<br /> ><br /> > Due to some severe problems when coincidently accessing/editing spatial data<br /> > (not the same data but in the same directory) with ArcGIS on remote (samba)<br /> > drives - which our IT sofar never couldn't really explain - I started using<br /> > QGIS to easy the situation for my colleagues and me.<br /> ><br /> > However, beside the sporty challenge for me to fastly adopt the productive<br /> > operation of the QGIS including some still apparent drawbacks I sometimes<br /> > just depend on functionallity that only ArcGIS provides. In our geological<br /> > driven case thats for sure the very sophisticated "Spline with Barrier"<br /> > function. We currently changed our workflow that previously based on a<br /> > ArcView 3.x plugin, but which caused more and more trouble since<br /> > Windows7/64bit rules the hardware in the department.<br /> ><br /> > At one time I agreed to program a workflow that does all the necessary<br /> > preprocessing and final gridding depending on quite a number of input<br /> > parameters. Of course, I had no plan to cut me off as a (quite happy) QGIS<br /> > user who by using QGIS in fact did an altruistic favour to the colleagues<br /> > but esp. to the IT dep. ;)<br /> ><br /> > So, I wrote a general python script using arcpy/spatial analyst... that<br /> > accepts the input parameters as dictionary provided on command line or using<br /> > a seperate python script defining a class holding the input parameter. I<br /> > created a QGIS dialog plugin that collects all those parameters in an<br /> > appropriate manner in the form of:<br /> ><br /> > start /i cmd /c python myWorkflow.py -d "configDict = {'inputIsoLineFile':<br /> > r"U:\... etc etc}"<br /> ><br /> > I also learned I had to copy the xxx64bit.pth-File (don't remember the<br /> > correct name right now) from the ArcGIS-Python directory to the QGIS python<br /> > site-packages directory.<br /> ><br /> > Now, beside some error messages (some gdal dll in QGIS....etc are not real<br /> > 32bit.... or so), which seem to have no real impact on the run itself, I got<br /> > my first grids, which I sent to a post processing befor leaving the desktop.<br /> ><br /> ><br /> > This to getting work cost me a lot of extra time. I mean, I did this "en<br /> > passent" while fullfilling my main work. So I'm really interested in what<br /> > would be your approach to that! In fact to me it seems much more easy if I<br /> > could start a cmd session that has no inherits from what so ever and comes<br /> > with the environment as if I would start it from the Windows menu.<br /> ><br /> > Sorry for the long description, appreciating some thoughts of you!<br /> > Torsten<br /> > _______________________________________________<br /> > Qgis-user mailing list<br /> > <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br /> > <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote>