I have a number of KML files and I would like to convert them to Shapefile format.

Is it possible to build a model that iterates over a number of KML files?

I tried to use File iterator, but it doesn't seem to work.

KMLs to layer

  • Since KML files may contain various geometry types and shape files can only accommodate one, this tool specifically asks you a "Geodatabase" location where to save (possible) geometries. If you change the name of "Output Geodatabase" to "%Name%" (as in your iterators output parameter), you will be able to extract them in a geodatabase as one or more Feature Classes not as a shapefile. However by using Calculate Value tool and with a bit of Python code, this is possible.
    – fatih_dur
    Jun 8, 2015 at 14:16

1 Answer 1


As commented by @KHibma:

Might be quicker to copy/paste the 2nd copy sample from [the KML Layer (Conversion) documentation]which does exactly what you want (well it consolidates all KML into a single fGDB and maybe you dont want that part - so you could remove it)

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.