C # Use the gdal/OGR library to read and write ESRI shape summary [original]

Source: Internet
Author: User
Tags map vector
Some time ago, I tested the process of calling gdal/OGR to read and write the shape file with C #. The overall process looks simple. Today I will summarize it a little bit:
1. The OGR class library reference has been comprehensive on the official website, but some listed methods have changed in the C # Call process;
2. It is very convenient to call OGR in vs.net, and its class prompts are clear and clear. In the process of using OGR, try multiple experiments to find out;
I tested the process of reading, writing, and creating a shape file, and represented the shape file as a custom code, mainly paving the way for the Google map vector platform project. Two images are shown below:
This is the process of reading shape:

The following is the process of writing a shape. The custom standard encoding is entered in the box:

The following result is displayed in the folder:

Let's take a look at the encoding standard:
Related Article

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.