Initially, because the cute learning brother asked how to import Esri shapefile files into Google Earth contact with the ogr2ogr. After a rough look, this little thing is powerful.
Google Earth supports the presentation of vector data, provided that the data conforms to the KML or KMZ format. The Ogr2ogr, written by the Ogr Open Source Library, supports reading and writing of approximately 60 formats of vector data, with shp-> KML as an example:
Ogr2ogr-f "KML" D:\FROMSHP.KML d:source.shp
-F + format_name + Targetdata_name + sourcedata_name
Obviously, the conversion process is divided into three parts: read the source file, the data reorganization, the output file. It is important to note that the OGR2OGR parameter contains only the required drive in the output, so it is inferred that the file is read according to the file
Prefix to match drive, for this ogr2ogr can be used to achieve a different format vector data between the additional step:
Ogr2ogr-append-f "ESRI Shapefile" D:\Buttom.shp D:\Top.kml
Step through the work of KML file append into shp file, strong!
More parameters, see: http://www.gdal.org/ogr2ogr.html
Gadl Utility for vector data format conversion--ogr2ogr