官术网_书友最值得收藏!

Summary

In this chapter, we looked at a number of important libraries for developing geospatial applications using Python. We learned the following:

  • GDAL is a C++ library for reading (and sometimes writing) raster-based geospatial data.
  • OGR is a C++ library for reading (and sometimes writing) vector-based geospatial data.
  • GDAL and OGR include Python bindings that are easy to use, and support a large number of data formats.
  • The PROJ.4 library, and its Pythonic pyproj wrapper, allow you to convert between geographic coordinates (points on the Earth's surface) and cartographic coordinates (x,y coordinates on a two-dimensional plane) using any desired map projection and ellipsoid.
  • The pyproj Geod class allows you to perform various geodetic calculations based on points on the Earth's surface, a given distance, and a given angle (azimuth).
  • A geospatial data manipulation library called the Java Topology Suite was originally developed for Java. This was then rewritten in C++ under the name GEOS, and there is now a Python interface to GEOS called Shapely.
  • Shapely makes it easy to represent geospatial data in the form of Points, LineStrings, LinearRings, Polygons, MultiPoints, MultiLineStrings, MultiPolygons, and GeometryCollections.
  • As well as representing geospatial data, these classes allow you to perform a variety of geospatial calculations.
  • Mapnik is a tool for producing good-looking maps based on geospatial data.
  • Mapnik can use an XML stylesheet to control the elements that appear on the map, and how they are formatted. Styles can also be created by hand if you prefer.
  • Each Mapnik style has a list of Rules which are used to identify features to draw onto the map.
  • Each Mapnik rule has a list of Symbolizers that control how the selected features are drawn.

While these tools are very powerful, you can't do anything with them until you have some geospatial data to work with. Unless you are lucky enough to have access to your own source of data, or are willing to pay large sums to purchase data commercially, your only choice is to make use of the geospatial data which is freely available on the Internet. These freely-available sources of geospatial data are the topic of the next chapter.

主站蜘蛛池模板: 孝感市| 普格县| 南川市| 屯留县| 朝阳市| 金昌市| 德惠市| 东山县| 游戏| 那曲县| 西林县| 永修县| 青河县| 汨罗市| 舟山市| 房产| 开平市| 壶关县| 莲花县| 榆中县| 营口市| 南阳市| 汾阳市| 剑阁县| 鹿泉市| 大余县| 黄冈市| 金川县| 平定县| 绩溪县| 青阳县| 灵宝市| 老河口市| 喀什市| 连南| 宁国市| 元谋县| 喀喇| 恭城| 木里| 华蓥市|