4

Is it possible to construct a geoalgorithm on the ArcMap modelbuilder, export this entire algorithm to python syntax (without having ANY knowledge of python) and then import this algorithm to QGIS and run it successfully?

I am more familiar with ArcGIS and unfortunately the QGIS Processing framework presents enormous difficulties when using GRASS commands to process raster files. I for one am not familiar with GRASS, and am very disappointed that QGIS processing framework is unable to take care of the GRASS part for me when it comes to dealing with rasters.

I am pursuing an internship for a company that only uses QGIS so if I could do this for them they would be very impressed :D.

  • 3
    Without knowing any python, it would be challenging. However, the biggest challenge would be to match up the corresponding functions from ArcMap to QGIS. So "import" the algorithm isn't really going to happen, but "adapt" potentially could... but I'd recommend knowing Python to accomplish the task. – Erica Aug 13 '14 at 14:27
  • 2
    Technically. you could add arcpy to the site packages of the qgis python interpreter, But I have newer tried this. – warrieka Aug 13 '14 at 14:30
  • 6
    It would appear that you will have to put a little effort in if you want to impress the company :) – Joseph Aug 13 '14 at 14:34
  • 3
    Since you're seeking an internship, you might want to pitch this more as "Here is a process I'm interested in: how to streamline the process of transitioning scripts from ArcMap to QGIS..." If you can intelligently discuss the challenges and what you'd like to learn to overcome those challenges (while working for them ideally), that gives them an idea of what to do with you as an intern. – Erica Aug 13 '14 at 14:43
  • 1
    Can you describe the use case for why you want to migrate models/python scripts from ArcGIS to QGIS? Are they migrating from ArcGIS to QGIS, or do you just know ArcGIS and want to convert your models to their platform? If the latter, you might just look at learning the QGIS Processing Framework, the equivalent of ArcGIS ModelBuilder. – RyanDalton Aug 13 '14 at 15:40
3

I think your question is easily answered by using the following steps:

  1. Construct a simple model using the ArcGIS ModelBuilder
  2. Export this model to Python syntax which you can do without having ANY knowledge of Python because it is an option on the ModelBuilder menu
  3. Try running the same script with QGIS and address any Python/QGIS errors thrown as they arise

Unless the model you start out with is very simple, even performing step 3 using ArcGIS for Desktop can be very challenging for someone new to Python, so my answer to your question of doing that for QGIS becomes close to an unqualified "No".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.