s2geojson

package module
Version: v0.0.0-...-70939e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 0 Imported by: 0

README

Build Status GoDoc Go Report Card codecov

Preview

preview

Summary

Draw a polygon on the map or paste a geoJSON and explore how the s2.RegionCoverer covers it with S2 cells depending on the min and max levels. Drop a marker and inspect the corresponding S2 cell.

  • Display s2 cells on leaflet map using the region coverer.
  • Convert geojson features to cell unions depending on the min and max levels (supported only Polygons and Points).
  • Draw points and polygons.
  • Check point & circle intersection with the geoJSON features.

Quick start

 go run cmd/s2-geojson/main.go

Docker

docker run -p 8080:8080 --rm lmaroulis/s2-geojson

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

Overview

Package s2geojson converts geojson to s2 cells with region coverer and demonstrating some s2 features on map

- Display s2 cells on leaflet map using the region coverer.
- Convert geojson features to cell unions depending on the min and max levels (supported only Polygons and Points).
- Draw points and polygons.
- Check intersection with the geojson features.

Source Files

Directories

Path Synopsis
cmd
pkg
geo
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL