使用Python进行地理处理

5星 · 超过95%的资源 需积分: 10 158 下载量 194 浏览量 更新于2024-07-20 3 收藏 28.17MB PDF 举报
"《Geoprocessing with Python》是由Chris Garrard撰写的一本书,该书讲述了如何使用Python编程语言以及开源工具来读取、写入和处理地理空间数据。书中涵盖了一系列核心的地理处理任务,包括处理多种矢量文件格式、编辑几何形状、应用空间和属性过滤、处理投影以及对矢量数据进行基本分析。此外,还介绍了处理和分析光栅数据,如航拍照片和数字高程模型。适合有一定Python基础或类似编程经验的读者阅读。" 这本书旨在介绍使用Python进行地理处理的基础知识,让读者能够利用GDAL、NumPy和matplotlib等免费模块进行专业级别的地理数据操作,而无需依赖昂贵的专有软件包,如ArcGIS和MapInfo。通过大量的实践示例,读者将掌握读取不同矢量文件格式、应用OGC滤波器、使用OGR库操作几何形状、执行OGR矢量分析、理解和使用空间参考系统、处理和写入光栅数据、进行光栅数据分析(如地图代数)、地图分类以及数据可视化等技能。 书中的章节结构清晰,从基础的Python知识开始,逐步深入到更复杂的地理处理任务。第1章是引言,第2章介绍Python基础知识,第3章至第7章涉及矢量数据的处理,包括读写、格式转换、过滤和分析。第8章讨论空间参考系统,第9章至第10章讲解光栅数据的读写与操作,第11章至第13章涉及光栅数据的分析、分类和可视化。附录部分提供了安装指南和参考信息,便于读者实际操作。 作者Chris Garrard在犹他州立大学担任开发者,并教授Python编程用于GIS的研究生课程,因此他具有丰富的实践经验和教学背景,使得这本书的内容既实用又易于理解。 《Geoprocessing with Python》是一本面向Python编程者和地理信息科学爱好者的理想教材,它提供了丰富的资源和实践案例,帮助读者掌握使用Python进行地理空间数据处理的技能,无论是在学术研究还是在实际工作中,都将大有裨益。
2018-04-04 上传
Although I’d taken a lot of programming classes in college, I never fully appreciated programming until I had a job that involved a lot of repetitive tasks. After amusing myself by automating much of that job, I decided to return to school and study biol- ogy, which is when I took my first GIS course. I was instantly in love, and managed to convince someone to give me a biology degree for writing an extension for ArcView GIS (a precursor to A rc GIS , for you Esri fans out there). After finishing that up, I went to work for the Remote Sensing/Geographic Information Systems Laboratory at Utah State University. One of my first projects involved some web mapping, and I soon became a big fan of the open source UMN M ap S erver software. That was my introduc- tion to open source geospatial software, including GDAL . I’m fairly certain that I didn’t appreciate the power of the GDAL/OGR library when I first learned about it, but I came to my senses once I started using it in my C++ and C# code. In the College of Natural Resources, there weren’t many people around who were interested in coding, but I did get to point people to the GDAL command-line utilities on a regular basis. But then Esri introduced Python as the scripting language of choice for A rc GIS , and things started to change. I don’t think I had used Python much before then, but playing with arcgisscripting (the original Esri Python module) made me realize how much I enjoyed working with Python, so naturally I had to start using GDAL with it as well. More importantly for this book, my coworker John Lowry suggested that we team- teach a Python-for- GIS class. He taught students how to use Python with A rc GIS , and I taught them about GDAL . The class turned out to be popular, so we taught it that way for another few years until John moved away. I took over the entire class and have been teaching it in various configurations ever since. I’ve never bothered to take the class material from the first two years off the web, however, which is how Manning found me. They asked if I would write a book on using GDAL with Python. I’d never had the desire to write a book, so it took a bit of persuasion to convince me to do it. In the end, it was my love for teaching that won me over. I’ve discovered over the years that I really enjoy teaching, mostly because I love watching students incorporate what they’re learning into the rest of their work. This is especially true of graduate students, some of whom might not have completed their research in a timely manner (or at all) if they hadn’t learned how to write code. I know that these skills will continue to assist them throughout their careers, and my hope is that this book will provide the same help to you, no matter if you’re a student, professional, or a hobbyist. This is fun stuff, and I hope you enjoy it as much as I do!