How to import or open GML file?


I’ve never used GML files with blender before (or any other way, to be honest) and I’m currently working on a project where I need to use a huge GML (1,8GB) to extract some parts, work them, and then export as .dae or .obj.

So, I found an add-on named Jedi Academy Plugin Suite and installed it but I just can’t make anything with it! When I try to import, all I get is an error message - “File Not Found! (No GLM?)”
I’m using Blender 2.76 in a windows 7 x64

Is there someone who can give some advice or any tip? Is there a way to open/import GML into blender?

Thanks in advance.

try to use Blender 2.64 version, maybe?


Well, not the solution I was expecting :slight_smile: I don’t think I should roll-back to a older version…
Do you (or someone else) know a workaround or an in-between step like a format converter that I can then import okay into blender?


Well, just found that GML is not the same as GLM! My bad :stuck_out_tongue:
Still, if someone can help me on how to import GML files into Blender I appreciate.

you need to be a bit more specific

"Graph Modeling Language "
“Geography Markup Language”
“Generative Modeling Language”

what IS the data ?
what program made it ?

to me it sounds more like a vector file for a GIS program like Qgis or ArcGis

there is BlenderGIS on github


Sorry, I thought there was only one GML… apparently was wrong! It’s none of those. It’s CityGML (GML3, I think)


from the wiki link
there is a tool to convert it to vrml “citygml2vrml”

there is also a link to a tool to convert ti to a obj file “CityGML2OBJs”

Thanks JohnVV!

I first thought it was a known file format and there would be some support or tools to work with it but I guess not. if that’s all there is I’ll give a try… Just one quick question: I never used external python scripts, so, I wonder if I can use the “system console” in blender to run the “CityGML2OBJs”?!

there is a Microsoft windows binary here

use cmd.exe

i gave up on using Microsoft products back in 2005 when i moved to linux based OS’s

from the wiki

citygml2vrml [-options ...] <input.gml> [output.wrl] 

for CityGML2OBJs

this is a bit more complex but cmd.exe calling “python” dose work

make sure the system requirements are installed

python -i /path/to/CityGML/files/ -o /path/to/new/OBJ/files/ -s 1

terminals are great , i use them everyday since the early 80’s in Highschool


I read all of the above. Does anyone have any better fixes for this nowadays? I have no experience in Java libraries or any of these things. But with All these Cities!! available, someone here is probably doing this all the time, easily and simply!

Can anyone shed light on this? Much appreciated.

I found a bunch of resources about this but they aren’t letting me put any more links in my post :frowning:

Do i have to learn how to javascript(?) or command line interface(?) just to import these?

I’m willing to dig in and learn but theres gotta be a better simple way right?

I found this web service:
You can download custom areas as .obj or .stl file, even with terrain data. The data comes form the original CityGML sources. But only a few areas are available right now.