- Geospatial Development By Example with Python
- Pablo Carreira
- 220字
- 2021-07-16 09:30:53
Conventions
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "A Python package is a directory containing one or more Python files (that is, modules) plus one __init__.py
file."
A block of code is set as follows:
import ogr # Open the shapefile and get the first layer. datasource = ogr.Open("../data/world_borders_simple.shp") layer = datasource.GetLayerByIndex(0) print("Number of features: {}".format(layer.GetFeatureCount()))
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
if __name__ == '__main__':
gdal.PushErrorHandler('CPLQuietErrorHandler')
vector_data = PointCollection("../data/geocaching.gpx")
vector_data.print_information()
Any command-line input or output is written as follows:
Collecting django Downloading Django-1.9-py2.py3-none-any.whl (6.6MB) 100% |################################| 6.6MB 43kB/s Installing collected packages: django Successfully installed django-1.9
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Proceed with the default options by clicking on the Next button."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
- scikit-learn Cookbook
- GAE編程指南
- Java EE框架整合開發入門到實戰:Spring+Spring MVC+MyBatis(微課版)
- Interactive Data Visualization with Python
- .NET 4.0面向對象編程漫談:基礎篇
- 假如C語言是我發明的:講給孩子聽的大師編程課
- JavaScript從入門到精通(第3版)
- 基于Swift語言的iOS App 商業實戰教程
- Spring技術內幕:深入解析Spring架構與設計原理(第2版)
- Visual Studio Code 權威指南
- Hands-On JavaScript for Python Developers
- Django 5企業級Web應用開發實戰(視頻教學版)
- Angular應用程序開發指南
- Moodle 3 Administration(Third Edition)
- 超簡單:用Python讓Excel飛起來(實戰150例)