geojson

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 9

Documentation

Overview

Package geojson creates GEOS geometries from GeoJSON files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feature

type Feature struct {
	Polygon    Polygon
	Properties map[string]string
}

func ParseGeoJSON

func ParseGeoJSON(r io.Reader) ([]Feature, error)

ParseGeoJSON parses geojson from reader and returns []Feature in WGS84 and another []Feature tranformed in targetSRID.

type LineString

type LineString []Point

type Point

type Point struct {
	Long float64
	Lat  float64
}

type Polygon

type Polygon []LineString

Jump to

Keyboard shortcuts

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