Gadl Utility for vector data format conversion--ogr2ogr

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.