Shapefile cannot afford to hurt

Source: Internet
Author: User

Recently, we have processed road links nationwide and want to create a complete Path Based on Link names, levels, and attributes.

To ensure efficiency, the shapefile format is used as the intermediate format and gdal is directly used to manipulate the shapefile format.

Data export and link belong to the same judgment, linestring flip, linestring link, data export, and other modules have been compiled.

Finally, the question of how to manipulate the national LINK (about 10 million pieces of data) came:

Just a few hundred million records, the disk space is occupied by 10 Gb!

Shit!

I forgot the length limit of the DBF string, and the DBF string is not longer. This disk space is too large to be occupied ~~

The error message "gdal" indicates that the field length is 255, Which is truncated. The number of fields and the length of field names are also limited.

These are all hard-hitting shapefile.

Convert to directly manipulate MySQL to see how efficient it is.

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.