Understand the Shapely architecture layers
mainShapely's architecture is composed of four distinct layers that separate the high-level Python interface from the low-level C++ algorithms:
- Python geometry classes: Located in
shapely.geometry, these provide the user-facing API. - Implementation registry: An abstraction layer that allows for different geometry engines. The default registry is located in
shapely.impl. - GEOS implementations: The specific implementations of registry methods, found in
shapely.geos. - libgeos: The underlying C++ library containing the core algorithms.