This chapter demonstrates techniques for manipulating geometries and geographies, and the end result is generally another geometry or geography. Unless we tell you otherwise, all functions that we demonstrate in this chapter work with both data types.
Through the years, we’ve amassed a catalog of problems that GIS users encounter, and in this chapter we’ll share with you the most common problems we’ve witnessed and our solutions. Keep in mind that multiple solutions exist for a given problem. We by no means proclaim that our solutions trump all other solutions. In fact, if enough people run into a problem that can be generalized, PostGIS could very well introduce a wrapper function that will resolve the problem with a single call.
The data and code used in this chapter are located here: www.postgis.us/chapter_ 11_edition_3.