shapefiles

package
v0.0.0-...-525700c Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

README

Shapefiles

This is used to determine if a point is in water or China. We should not be fetching tiles in water and a specific API is needed for Chinese points.

  • .orb: []orb.Polygon
  • .morb: map[int64]orb.Polygon - The key is level 9 morton encoded coordinates. This is used for efficient checking of whether a polygon exists

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	China  []orb.Polygon
	Waters map[int64][]orb.Polygon
)

Functions

func IsInChina

func IsInChina(lat, lon float64) bool

func IsInWater

func IsInWater(lat, lon float64) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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