Topological representation recognizes that, in reality, geometric features rarely exist independently of each other. When you gaze down on large metropolises from a plane, you see a maze of streets outlining blocks, interlocked. With a simple geometry model, you could use linestrings to represent the streets and polygons to represent the blocks. But once you lay out the streets, you already know where your blocks will be. Having to create polygons for the blocks is an exercise in redundancy. Congratulations, you’ve discovered topology.
In this chapter, you’ll learn what a topology is, how to build a topology from scratch, and how to use commonly available geometry data. You’ll also learn how to create what are called topogeometries (topogeoms) in a topology. You’ll learn how to detect problems in loaded data, how to fix problems in spatial data, and how to create simplified geometries using a topology model that maintains the connectedness of the constituent objects.