PostGIS Cookbook, Second Edition by Mayra Zurbarán

PostGIS Cookbook, Second Edition by Mayra Zurbarán

Author:Mayra Zurbarán
Language: eng
Format: mobi
Publisher: Packt
Published: 2018-03-28T07:56:49+00:00


Getting ready

Our source data will be in the LAS format, which we will insert into our database using the PDAL library, available at https://www.pdal.io/. This tool is available for Linux/UNIX and Mac users; for Windows, it is available with the OSGeo4W package (https://www.pdal.io/workshop/osgeo4w.html).

LAS data can contain a lot of interesting data, not just X, Y, and Z values. It can include the intensity of the return from the object sensed and the classification of the object (ground versus vegetation versus buildings). When we place our LAS file in our PostGIS database, we can optionally collect any of this information. Furthermore, PDAL internally constructs a pipeline to translate data for reading, processing, and writing.

In preparation for this, we need to create a JSON file that represents the PDAL processing pipeline. For each LAS file, we create a JSON file to configure the reader and the writer to use the postgres-pointcloud option. We also need to write the database connection parameters. For the test file test_1.las, the code is as follows:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Building Machine Learning Systems with Python by Richert Willi Coelho Luis Pedro(2119)
Hands-On Python Deep Learning for the Web by Anubhav Singh(2034)
Mastering OpenCV 4 with Python by Fernández Villán Alberto;(1947)
Python Feature Engineering Cookbook by Soledad Galli(1946)
Applied Deep Learning with Keras by Matthew Moocarme Mahla Abdolahnejad and Ritesh Bhagwat(1786)
Building Serverless Python Web Services with Zappa by Abdulwahid Abdulhaque Barguzar(1743)
Python for Finance: Analyze Big Financial Data by Yves Hilpisch(1738)
Python for Finance Cookbook by Eryk Lewinson(1719)
Mastering Python Data Visualization by Kirthi Raman(1705)
PYTHON PROGRAMMING ADVANCED: The Guide for Data Analysis and Data Science. Discover Machine Learning With the Optimum Recipes for Mastering Python and ... (Crash Course Tips and Tricks Book 3) by ERIC MATTHEWS & LEWIS TAYLOR(1656)
Django 3 By Example by Antonio Melé(1614)
Supervised Machine Learning with Python by Taylor Smith(1597)
Interactive Data Visualization with Python by Anshu Kumar & Shubhangi Hora & Sharath Chandra Guntuku & Abha Belorkar(1449)
Hands-On GPU Programming with Python and CUDA by Dr. Brian Tuomanen(1368)
Hands-On Image Processing with Python by Sandipan Dey(1338)
Scientific Computing with Python 3 by Claus Fuhrer & Jan Erik Solem & Olivier Verdier(1328)
Flask Framework Cookbook by Shalabh Aggarwal(1302)
Python Deep Learning. by Ivan Vasilev(1279)
Training Systems using Python Statistical Modeling by Curtis Miller(1269)
Django 3 Web Development Cookbook - Fourth Edition by Aidas Bendoraitis(1260)