How tordanik/osm2world works
Main Components and Architecture
The system should be represented as a pipeline with these major components:
a) Input Processing Layer
• OSM Data Readers (src/main/java/org/osm2world/core/osm/creation)
• Support for multiple input formats (.osm, .pbf, Overpass API, MBTiles)
b) Core Processing Pipeline
• Data Conversion (org.osm2world.core.map_data)
• Elevation Processing (org.osm2world.core.map_elevation)
• World Object Creation (org.osm2world.core.world)
• Mathematical Operations (org.osm2world.core.math)
c) Output Generation Layer
• Multiple target formats (GLTF, OBJ, POVRay, Frontend PBF)
• Rendering capabilities (JOGL-based)
Component Relationships
[Input Sources] → [OSM Data Readers] → [Map Data Conversion] → [World Creation] → [Target Renderers]
• ↑
• [Elevation Processing] --→
Detailed Component Breakdown
For each major component, include sub-components:
a) Input Processing:
• GeodeskReader
• MbtilesReader
• OSMFileReader
• OverpassReader
b) Core Processing:
• MapProjection
• TerrainElevation
• WorldModules (Buildings, Roads, etc.)
• Geometric Operations
c) Output Processing:
• GLTF Export
• OBJ Export
• POVRay Export
• JOGL Rendering
Additional Details
• Configuration system
• Resource management (textures, materials)
• Mathematical utilities
• Viewer application components
• Test framework integration
Implementation Notes
• The modular nature of the world modules
• The pipeline architecture
• The separation between core conversion and visualization
• The extensible target format system
Technical Specifications
Technical details:
• Java-based implementation
• OpenGL (JOGL) rendering
• Maven build system
• External dependencies