Skip to content

Commit

Permalink
Merge pull request #2981 from pavelmachek/m_8_spacew
Browse files Browse the repository at this point in the history
Add Space Weaver -- vector map application.
  • Loading branch information
gfwilliams authored Aug 29, 2023
2 parents 1b526d8 + 1c96a66 commit 646a4b0
Show file tree
Hide file tree
Showing 10 changed files with 981 additions and 0 deletions.
43 changes: 43 additions & 0 deletions apps/spacew/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Space Weaver ![](app.png)

Vector map

Written by: [Pavel Machek](https://github.com/pavelmachek)

Space Weaver is application for displaying vector maps. It is
currently suitable for developers, and more work is needed.

Maps can be created from openstreetmap extracts. Those are cut using
osmosis, then translated into geojson. Geojson is further processes to
add metadata such as colors, and to split it into xyz tiles, while
keeping geojson format. Tiles are then merged into single file, which
can be uploaded to the filesystem. Index at the end provides locations
of the tiles.

## Preparing data

Tools in spacew/prep can be used to prepare data.

You'll need to edit prepare.sh to point it to suitable osm extract,
and you'll need to select area of interest. Start experiments with
small area. You may want to delete cstocs and provide custom
conversion to ascii.

Details of which features are visible at what zoom levels can be
configured in split.js. This can greatly affect file sizes. Then
there's "meta.max_zoom = 17" setting, reduce it if file is too big.

For initial experiments, configure things so that mtar file is around
500KB. (I had troubles with big files, both on hardware and to lesser
extent on simulator. In particular, mtar seemed to be corrupted after
emulator window was closed.)

## Future Development

Directories at the end of .mtar should be hashed, not linear searched.

Geojson is not really suitable as it takes a lot of storage.

It would be nice to support polygons.

Web-based tool for preparing maps would be nice.
2 changes: 2 additions & 0 deletions apps/spacew/app-icon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 646a4b0

Please sign in to comment.