Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Python GeoSpatial Analysis Essentials

You're reading from   Python GeoSpatial Analysis Essentials Process, analyze, and display geospatial data using Python libraries and related tools

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781782174516
Length 200 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
 Westra Westra
Author Profile Icon Westra
Westra
Arrow right icon
View More author details
Toc

Manipulating spatial data


You are not limited to just using static data in your spatial analysis. You can also create new geometries and manipulate existing geometries directly within a PostGIS database. While it's easy to create a brand new geometry using functions such as the ST_GeogFromText() function we used earlier, you can also use the PostGIS geometry editing and geometry processing functions to create new geography values derived from old ones.

Note

There are some limitations on the functions available when you use the PostGIS GEOGRAPHY type. PostGIS originally only supported the GEOMETRY data type, which was designed to only work with spatial data projected onto a flat Cartesian plane. When using the GEOGRAPHY field, check the PostGIS manual to see which functions are supported.

To get an idea of how we can calculate new spatial values based on our existing data, let's write a program to buffer our outlines, and store them into a new GEOGRAPHY column in our database table.

We saw the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images