geojson

package
v0.0.0-...-901b40b Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

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