Is there a simple way to convert an AVL file into an SLD or QML file? deegree does not work an my laptop (Java problems)

Or is there a way to open the original AVL file in QGIS?

  • i don't get it working! how do i run this in qgis?
    – A.W.
    May 2, 2014 at 9:44
  • This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation.
    – Fezter
    May 2, 2014 at 10:31
  • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context.
    – PolyGeo
    May 2, 2014 at 10:45
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. May 2, 2014 at 11:16
  • This script worked perfectly for me. It converted a polygon thematic map with plain solid colours for each category. It gave a better output than going via Arc2Earth in ArcGIS which I have used previously. From the Windows command line I omitted the initial 'python' so just > avl2qml.py pathtothe.avl pathtothenew.qml Thank you, Snorfalorpagus!
    – user46588
    Feb 16, 2015 at 13:58

1 Answer 1


I've written a small python script to convert ArcView 3.x Legends (.AVL) to QGIS styles (.QML):


You can download the current version here:


To use: python avl2qml.py pathtothe.avl pathtothenew.qml

It's only had limited testing, but I've had some good results with it.

  • Sorry, i did not check in here for a while.
    – user16032
    Nov 1, 2013 at 15:31
  • Hi, I tried it, but there was an error "unexpected end of file in Line 1, Columme 1". However, I never used Python before and there were several error messages: No Module named pyobd. When trying to install pyodb "Unable to find vcvarsall". Got Python only with ArcMap, never installed it alone.
    – user16032
    Nov 1, 2013 at 16:12
  • 2
    works like magic Nov 11, 2013 at 10:14
  • @Snorfalorpagus.I was able to convert an avl file for styling linestrings. Great! No I have one for Polygons and I get the following ERROR: Traceback (most recent call last): File "avl2qml.py", line 303, in <module> qml = avl2qml(data, shapefile=args.shp[0], field_name=args.field[0]) File "avl2qml.py", line 16, in avl2qml odb = pyodb.ODB(data) File "d:\avl2qml-master\pyodb.py", line 36, in __init__ obj.resolve_references() File "d:\avl2qml-master\pyodb.py", line 163, in resolve_references self.outlinewidth = self.attrs['OutlineWidth'] KeyError: 'OutlineWidth'
    – Stefan
    Oct 19, 2016 at 10:59
  • I tested it, unfortunately, the created .qml didn't work.
    – pnz1337
    Feb 16, 2019 at 22:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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