Description of the four advantages of Python urce in practical application

Source: Internet
Author: User

Python urce is now widely used by many people. Why is Python urce used more and more? The following articles describe the advantages of Python urce related operations. The following is a detailed introduction of the article. I hope you will gain some benefits.

Advantages

1. Free, suitable for individuals and small companies

2. Powerful development tools make it easier to find bugs

3. cross-platform, windows and linux

4. Pull the wind!

1. OGR vector Library: Simple vector data read/write, is part of GDAL

2. GDAL geospatial data abstraction database:

A) Read and Write Raster Data

B) ArcGIS is also developed based on GDAL.

C) C ++ library, but can be called using python

Python urce modules

1. Numeric: High-Speed array processing, especially important for raster data

2. NumPy: the next generation of Numeric

3. More powerful gis database import and export:

 
 
  1. import ogr 

Or:

 
 
  1. from osgeo import ogr 

The omnipotent method is:

 
 
  1. try:  
  2. from osgeo import ogr  
  3. except:  
  4. import ogr   

To read data of a certain type, you must first load the data driver, that is, initialize an object to let Python urce "know" A data structure.

 
 
  1. import ogr  
  2. driver = ogr.GetDriverByName(‘ESRI Shapefile’)  
  3.  

The data-driven driver's open () method returns more than one data source object, which is an introduction to Python urce.

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.