Spherical triangles covering a globeby Read Write Tools
|The geoplex tool is used to create GIS layers of nested spherical triangles based on a regular icosahedron model of Earth. Vertices, edges, faces, and centroids may be used in any GIS system that reads geojson, ICE, or GFE file formats.|
Tiling the Earth with triangular faces has many uses. The motivation for this tool is the need to create faces that cover the entire earth, including the polar regions, with equal area tiles.
The geoplex utility uses Node.js. Package installation is done via NPM.
To install the utility and make it available to your Bash shell, use this command.
[user@host]# npm install -g geoplex
The software is invoked from the command line with:
[user@host]# geoplex --help
GEOPLEX creates geodetic triangles based on a regular icosahedron model of Earth
usage: geoplex generate [options]
geoplex convert [options]
--terrasect=min,max minimum and maximum icosahedron cutting depth (from 0 to 6) to include in output files
--output= filename to write shapes to
--geometry= which type of geometry to generate ['all', 'vertex', 'edge', 'face', 'centroid']
--accuracy= digits to use for latitude and longitude coordinates 1 to 6 (1=11km, 2=1100m, 3=110m, 4=11m, 5=1.1m, 6=11cm)
--format= which file format to use ['geojson', 'ice', 'icebin', 'gfe', 'gfebin']
'geojson' standard geoJSON encoding
'ice' indexed coordinate encoding
'icebin' indexed coordinate encoding binary
'gfe' geographic feature encoding
'gfebin' geographic feature encoding binary
--properties which properties to include with each feature
--topology print topology relationships
--statistics print statistical values
--verbose print extra topological and statistical details
The tool generates points, lines and polygons that cover the entire Earth using nested terrasects. The initial terrasect covers the Earth with 12 vertices, 30 edges, 20 faces, 20 centroids. Each terrasect contains four times as many spherical triangular faces as its predecessor:
- terrasect 0 has 20 faces of 21,544,071 km² and 30 edges of 7,054 km
- terrasect 1 has 80 faces of 6,093,750 km² and 120 edges of 3,765 km
- terrasect 2 has 320 faces of 1,575,750 km² and 480 edges of 1,914 km
- terrasect 3 has 1280 faces of 397,341 km² and 1920 edges of 961 km
- terrasect 4 has 5120 faces of 99,550 km² and 7680 edges of 481 km
- terrasect 5 has 20,480 faces of 24,901 km² and 30,720 edges of 241 km
- terrasect 6 has 81,920 faces of 6,226 km² and 122,880 edges of 120 km
The generated output is in any of these GIS shape file formats:
- geojson - RFC 7946
- ice - Indexed Coordinate Encoding
- icebin - Indexed Coordinate Encoding binary
- gfe - Geographic Feature Encoding
- gfebin - Geographic Feature Encoding binary
|node.js||CLI and API|
|Documentation||Read Write Hub|
The geoplex library is not freeware. After evaluating it and before using it in a public-facing website, eBook, mobile app, or desktop application, you must obtain a license from Read Write Tools as part of the rwt-orthographic-earth DOM Component.
Copyright © 2022 Read Write Tools.
- By using these Materials, you agree to abide by the terms and conditions of this Agreement.
- The Materials are protected by United States copyright law, and international treaties on intellectual property rights. The Materials are licensed, not sold to you, and can only be used in accordance with the terms of this Agreement. RWT is and remains the owner of all titles, rights and interests in the Materials, and RWT reserves all rights not specifically granted under this Agreement.
- Subject to the terms of this Agreement, RWT hereby grants to you a limited, non-exclusive license to use the Materials subject to the following conditions:
- You may not distribute, publish, sub-license, sell, rent, or lease the Materials.
- You may not decompile or reverse engineer any source code included in the software.
- You may not modify or extend any source code included in the software.
- Your license to use the software is limited to the purpose for which it was originally intended, and does not include permission to extract, link to, or use parts on a separate basis.
- An eBook published under a single title and author.
- A mobile app for distribution under a single app name.
- A desktop application published under a single application name.
- A website published under a single domain name. For this purpose, and by way of example, the domain names "alpha.example.com" and "beta.example.com" are considered to be separate websites.
- A load-balanced collection of web servers, used to provide access to a single website under a single domain name.