# deprecated-stacker-of-worlds **Repository Path**: mirrors_mapbox/deprecated-stacker-of-worlds ## Basic Information - **Project Name**: deprecated-stacker-of-worlds - **Description**: Stack GeoJSON spanning multiple worlds onto the One True World - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-10-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # stacker-of-worlds **WORK IN PROGRESS** Stack GeoJSON spanning multiple worlds onto the One True World of CRS84 — that is, with all longitudes contained between -180 and +180. By different "worlds" I mean different 360 degree segments of an infinite longitudinal range: -180 to +180, 180 to 540, 540 to 900, -540 to -180, -900 to -540, etc. ## How it works Accepts a GeoJSON Feature or FeatureCollection and returns a new Feature or FeatureCollection representing the same information but with the following transformations to ensure coordinates fall within real longitudes (applied to the sole Feature or else to every Feature in the FeatureCollection): - If the Feature exists completely *inside* +/-180, leave it as it is. - If the Feature exists completely *outside* +/-180, translate its coordinates over to the One True World. - If the Feature spans any number of datelines in any number of "worlds", split it at the datelines to create one geometry for each world, translate each geometry's coordinates to the One True World, then combine all the translated coordinates into a Multi* Feature.