44

I recently tried to use QGIS and I wondered if you can convert a draft ArcGIS map (*.mxd file) into a QGIS project (*.qgs file).

This would avoid thematize the entire project.

  • 1
    I downloaded the MXD2QGS executable and python file. I had some issues with the xml.dom.ext as that module isn't packaged with Python 2.6 or 2.7. I just got rid of that call and re-wrote line 411 to: f.write(doc.toprettyxml()) This will handle writing the output instead of using xml.dom.ext. Also, I had to change line 227 to: if(lyr.isGroupLayer == False and lyr.isRasterLayer == False and lyr.isFeatureLayer == True): This is because the script seemed to have issues with annotation layers, so I wanted to filter firther by adding the lyr.isFeatureLayer == True condition So, this gets me .q – Mike Mar 8 '13 at 23:35
  • I've been working on this problem. I reverted back to the original script without my edits. I'm using Arc 10.1 Python 2.7. I installed PyXML for Python 2.7 from here: somethinkodd.com/oddthinking/2009/10/31/… and then ran from IDLE using hardcoding for inputs and outputs. This works fine. I am able to create the .qgs layer and bring it into Quantum successfully. I think the toolbox in the MXD2QGS download is created as an Arc 10.0 toolbox. I suggest creating a new toolbox in 10.1, recreate all the parameters and source to .py file. – Mike Mar 11 '13 at 21:22
  • 1
    Running mxd2qgs on ArcMap 10.0 and Python 2.6.5, I am getting <type 'exceptions.RuntimeError'>: Object: Describe input value is not valid type. Please advise if possible, I am rather stuck. Thanks! – user2426679 Dec 27 '15 at 21:13
  • 1
    since MxdtoQgs no longer works. Have you guys some tips to convert .mxd to .qgs? Thanks, Pierre :) – Pierre Feb 12 '18 at 14:59
  • No longer works? Did you check github.com/fitnr/mxd2qgs? – aldo_tapia Feb 12 '18 at 15:05
36

This looks like the sort of thing you want: https://underdark.wordpress.com/2011/05/27/converting-mxd-to-qgis-project-file/

On Wednesday, Allan Maungu announced MXD2QGS, a converter that exports layers from an Arcmap 10 document into a Quantum GIS project file. The tool is built as an ArcToolbox and can be downloaded from the blog.

The only working download link seems to be https://sites.google.com/site/lumtegis/files/Mxd2Qgs.zip

As of August 2017 this tool also appears to be available at https://github.com/fitnr/mxd2qgs

There's also one for doing ArcView 3.x files apparently: http://gix.sourceforge.net/

3

geocat offers a commercial ArcMap plugin called 'Bridge' that can convert all of your ArcMap symbology to SLD (there is an open source alternative arcmap2sld). In QGIS you can import SLD and use this as style for QGIS layer. In bridge the tree structure of the TOC is exported as WMC, and the data as shapefiles (including metadata .shp.xml) and tiff's. I would want to create a tool in Qgis that can read the WMC, sld's and data and create a qgis project from that. Anyone interested in such a tool?

-1

This doesn't seem to actually work, and if you download the project, it is still under development. If someone sees that 3.4 has new capabilities, please let me know.

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.