How it all works together

We've provided an overview of the most important open source packages for processing and analyzing geospatial data. The question then becomes when to use a certain package and why. GDAL, OGR, and GEOS are indispensable for geospatial processing and analyzing, but were not written in Python, and so they require Python binaries for Python developers. Fiona, Shapely, and pyproj were written to solve these problems, as well as the newer Rasterio library. For a more Pythonic approach, these newer packages are preferable to the older C++ packages with Python binaries (although they're used under the hood).

However, it's good to know the origins and history of all of these packages as they're all so widely used (and for good reason). The next chapter, which will be discussing geospatial databases, will build on information from this chapter. Chapter 5Vector Data Analysis, and Chapter 6Raster Data Processing, will specifically deal with the libraries discussed here, getting deeper into the details of both raster and vector data processing using these libraries.

At this point, you should have a global overview of the most important packages for processing and analyzing, their history, and how they relate to each other. You should have an idea of what options are available for a certain use case and why one package is preferable over another. However, as is often the way in programming, there might be multiple solutions for one particular problem. For example, when dealing with shapefiles, you could use pyshp, GDAL, Shapely, or GeoPandas, depending on your preference and the problem at hand.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset