GIS-LAB

Geographic information systems and Remote sensing

Batch conversion from KML to ESRI shapefile using Arcview

Short description of the instrument to convert data from KML to Shape-file format

Обсудить в форуме Комментариев — 0

One the ways to convert data from kml to shape-file format is to use special extension for Arcview GIS 3.x. This extension switches on additional menu which contains 3 instruments: import for polygons, lines and points. Import can be done in batches, for this, several KMLs should be selected pressing SHIFT while selecting in Arcview "Open Google KML file" box.

kml2shape menu

Though other converters already exist, they were not always able to do what we wanted them to do or they require installation of other additional software. Because of this and partly for fun, we wrote this piece of software to convert data not going anywhere but Arcview. You can find links on the other converters of this kind in the end of the article, may you will find them more convinient.

KML files can contain simultaneously points, lines and polyons, so, to import everything from such files, run each menu item one after the other on the same KML file.

To start using this extension - download, install and switch it on - kml2shp.avx (File\Extensions...)

kml2shape menu

Some notes:

  1. Name of the object is imported in the Name field, if its length exceeds 250 characters, it will be truncated.
  2. Resulting files have the same name as the KMLs which are being imported.
  3. If KML is UTF-8 encoded, names in cyrillic and probably other languages won't be imported correctly. To correct this, change the encoding of the KML file to something, which Arcview GIS understands (Windows-1251 in case of cyrillic). There are various instruments which can do this - EMeditor, Notepad++ and many others.
  4. Even if elevation attribute for the object is present 3D shape-file won't be created automatically. If you want to create 3D-shapefiles, use 3D versions of the importers.

KML format is changing slightly depending on properties of the object and how it was obtained, so in some cases out extension can fail. If this happened, you can send us an example of such KML and we'll be happy to fix our extension to correctly import it.

To import KML in shape you can also use:

  • KML2SHP Conversion >>>- doesn't batch convert, fails on mixed KMLs
  • Kml2shp file conversion >>>- doesn't batch convert, no 3D shape-files import

Обсудить в форуме Комментариев — 0

Последнее обновление: September 09 2021

Дата создания: 27.07.2007
Автор(ы): Максим Дубинин