How cleder/fastkml works
Main Components
a. Core Library Components:
• KML Parser/Writer Module
• Geometry Handler (using pygeoif)
• XML Processing Layer (with optional lxml support)
• Data Models/Types
• Validation System
b. External Dependencies:
• pygeoif (Required)
• lxml (Optional)
Foundation Layer
• Base Components (/fastkml/base.py)
• Configuration (/fastkml/config.py)
• Type System (/fastkml/types.py)
• Utilities (/fastkml/utils.py)
Core Processing Layer
• XML Processing (using lxml or built-in XML)
• Geometry Processing (via pygeoif)
• Registry System (/fastkml/registry.py)
• Validation (/fastkml/validator.py)
KML Feature Layer
• Containers (/fastkml/containers.py)
• Features (/fastkml/features.py)
• Styles (/fastkml/styles.py)
• Overlays (/fastkml/overlays.py)
Extension Layer
• Atom Support (/fastkml/atom.py)
• GX Extensions (/fastkml/gx.py)
• Network Links (/fastkml/network_link_control.py)
Design Elements
Use the following visual elements:
• Blue rectangles for core components
• Green rectangles for external dependencies
• Yellow rectangles for optional components
Component Relationships
Following interactions:
External Clients -> KML Parser/Writer
• > Validation System
• > Feature Handlers
KML Parser/Writer -> XML Processing Layer
• > Geometry Handler
• > Data Models
Feature Handlers -> Base Components
• > Type System
• > Registry
Additional Notes
• Keep the focus on the library's role as a KML processor
• Separation between parsing, validation, and feature handling
• How the library integrates with external geometry libraries
• Schema validation system (/fastkml/schema/)