Cloud Optimized GeoTIFF Map (cog map)
This project enables users to view any Cloud Optimized GeoTIFF (COG) posted online. Works out of the box with 3-band RGB data, more advanced data is hopefully coming soon.
Available for use at https://cholmes.github.io/cog-map/
Join on chat at https://gitter.im/cog-map/Lobby
Using the online map
The URL hash is updated with the COG URL and map location, so you can 'share' the URL with anyone. Though there's a bug right now where it will double encode the URL when you share it, preventing repeated sharing.
Installation and Running
If you want to clone the project and start developing against it, or just run your own, installation is pretty simple. You need to have Node and NPM installed (at least Node 8, for Parcel support - see below), and then you just clone this repo, go to the root and type:
This should install all the dependencies (unless of course I forgot some global dependencies - please file an issue if you have errors, or even just let me know that it works). A key one is parcel which builds the application and updates it on the fly as you edit files. It's quite cool.
To run the project locally, using parcel, just type:
If you would like to put your own copy of cog map on your website then there are two routes. If you would like it exactly as it is online at http://cholmes.github.io/cog-map you can just switch to the 'gh-pages' branch of this repo can copy it.
If you'd like to customize the code or html at all then you can use the build script:
npm run-script build
This will create a
dist/ directory, and you can then copy that to a server. If it's not quite right you then check the
parcel production page, and just modify the package.json file in the 'build' section
to have the parameters you want.
Thanks also to Amazon for Earth on AWS Research Credits. Anyone is welcome to use the tiling service, as they want to help promote Cloud Optimized GeoTIFF usage. Once I figure out how to get it on a nicer DNS I'll document it for easier use.