GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kjkrol/gram-madeira-square: Madeira on a square grid: two demos of the gram engine and gramap, the tool that makes their maps

BranchesTags
Open more actions menu

Latest commit

 

History

23 Commits
23 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude/probes/picture
.claude/probes/picture
 
 
.github/workflows
.github/workflows
 
 
doc
doc
 
 
flat
flat
 
 
relief
relief
 
 
.gitignore
.gitignore
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
madeira.yaml
madeira.yaml
 
 

Repository files navigation

gram-madeira-square

Madeira on a square grid, a cell 100 m: two demos of the gram engine and the tool that makes their maps of the real island.

Demo What it shows
relief Madeira in relief, its true heights: light, water, the sea over its bed, roads, bridges and tunnels, the weather, the ground textured from photographs (-look ghibli paints it), forests and settlements as fields unfolding near and photographed into a sheet far off, the settlements' buildings as solids, caravans and travellers on the roads, the camera on a stick or behind a unit
flat The same island on the simple map: a flat board, its settlements as cells of their own, bands for the ways, bridges and fords, a minimap round the camera
make relief           # -look ghibli: make relief-ghibli; -hud widgets: make relief-widgets
make flat

K shows the controls in either, F10 the settings. The demos keep what is dear to make between runs in the user's cache (gram-madeira-square/relief: the sheets of what stands far off and the hierarchy the long routes are climbed through).

Maps of the Earth

Both maps are made by gramap, which makes a map a gram board lays of any stretch of the Earth at any scale out of a recipe; madeira.yaml is Madeira's:

make maps

which runs gramap at the version the Makefile names (GRAMAP):

go run github.com/kjkrol/[email protected] -recipe madeira.yaml -geography relief/geography
go run github.com/kjkrol/[email protected] -recipe madeira.yaml -geography flat/geography -flat

Each demo is laid by its map in metres: geography/, the ground's heights as an image (none on the flat board) and what lies on it as GeoJSON (gram's board/mapfile), and geography.yaml, the level over it, where the units are written; gramap keeps them as the maps are made.

The recipe says where, how many cells and how many metres a cell spans, what the ground is by its slope and height, how much drained land makes a brook, a stream and a river, and the roads: here OpenStreetMap's, with its bridges, tunnels and settlements, the land drawn as CORINE Land Cover says (laurisilva within its Natura 2000 site, woodland, pinewood, heath and farmland). What a recipe can say is gramap's README's.

relief/geography.yaml carries one line written by hand, the lantern after the bridge from [181, 73] ({kind: lantern, at: [184, 76]} among the board's entities): a map made anew gets it back by hand.

Building

The module needs gram and its siblings (goke, ceremony, aabbworld, hpastar) as its go.mod says. make build and make test build and test everything; the Makefile runs with GOEXPERIMENT=simd, as gram's does.

Credits

  • The heights of both maps and of every map gramap makes: the Terrain Tiles on AWS, Mapzen's Tilezen terrarium — SRTM, EU-DEM (Copernicus), GMTED2010, ETOPO1 and others; see their attribution.
  • The roads, tunnels, bridges and settlements of Madeira in relief (relief/geography), and of every map gramap makes with source: osm: © OpenStreetMap contributors, under the Open Database License.
  • What grows where on Madeira in relief, and on every map gramap makes with cover: {source: corine}: CORINE Land Cover 2018, © European Union, Copernicus Land Monitoring Service, European Environment Agency (EEA); the Natura 2000 sites, © EEA.
  • The ground's photographs (relief/textures): Poly Haven, CC0.

License

MIT

About

Madeira on a square grid: two demos of the gram engine and gramap, the tool that makes their maps

Topics

gamegrammadeira

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.