geoos

package module
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: LGPL-2.1 Imports: 0 Imported by: 0

README

Geoos

Our organization spatial-go is officially established! The first open source project Geoos(Using Golang) provides spatial data and geometric algorithms. All comments and suggestions are welcome!

Guides

http://www.spatial-go.com

Contents

Structure

  1. Algorithm is the definition of spatial operation, which is outside exposing.
  2. strategy.go defines the implementation of the spatial computing based algorithm.

Documentation

How to use Geoos: Example: Calculating area via Geoos

package main

import (
	"bytes"
	"fmt"

	"github.com/spatial-go/geoos/geoencoding"
	"github.com/spatial-go/geoos/planar"
)

func main() {
	// First, choose the default algorithm.
	strategy := planar.NormalStrategy()
	// Secondly, manufacturing test data and convert it to geometry
	const polygon = `POLYGON((-1 -1, 1 -1, 1 1, -1 1, -1 -1))`
	// geometry, _ := wkt.UnmarshalString(polygon)

	buf0 := new(bytes.Buffer)
	buf0.Write([]byte(polygon))
	geometry, _ := geoencoding.Read(buf0, geoencoding.WKT)

	// Last, call the Area () method and get result.
	area, e := strategy.Area(geometry)
	if e != nil {
		fmt.Printf(e.Error())
	}
	fmt.Printf("%f", area)
	// get result 4.0
}

Example: geoencoding example_encoding.go

Maintainer

@spatial-go

Contributing

We will also uphold the concept of "openness, co-creation, and win-win" to contribute in the field of space computing.

Welcome to join us !please report an issue

Email Address: geoos@changjing.ai

License

Geoos is licensed under the: LGPL-2.1

Documentation

Index

Constants

View Source
const GeoosTestTag = true

GeoosTestTag Decide whether to perform test control

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package algorithm defines Specifies Computational Geometric and algorithm err.
Package algorithm defines Specifies Computational Geometric and algorithm err.
buffer
Package buffer define geomtry matrix conversion.
Package buffer define geomtry matrix conversion.
buffer/simplify
Package simplify define Douglas Peucker and Topology Preserving simplify.
Package simplify define Douglas Peucker and Topology Preserving simplify.
calc
Package calc methods and parameters be realized ouble precision calculation.
Package calc methods and parameters be realized ouble precision calculation.
calc/angle
Package angle define angel calculation function.
Package angle define angel calculation function.
calc/bytevalues
Package bytevalues ead and write primitive datatypes from/to byte
Package bytevalues ead and write primitive datatypes from/to byte
filter
Package filter Define data filter function.
Package filter Define data filter function.
graph
package graph the graph to describe the hierarchical relationship between geometric objects.
package graph the graph to describe the hierarchical relationship between geometric objects.
graph/clipping
Package clipping the spatial geometric operation and reconstruction between entities is realized.
Package clipping the spatial geometric operation and reconstruction between entities is realized.
graph/de9im
package de9im the criteria for judging the various topological relations between points, line and surface entities in DE-9IM model are given.
package de9im the criteria for judging the various topological relations between points, line and surface entities in DE-9IM model are given.
graph/dissovle
Package dissovle Slice a geometric polygon.
Package dissovle Slice a geometric polygon.
graph/graphtests
package graphtests is include test datas.
package graphtests is include test datas.
matrix
Package matrix Define spatial matrix base.
Package matrix Define spatial matrix base.
matrix/envelope
Package envelope Defines a rectangular region of the 2D coordinate plane.
Package envelope Defines a rectangular region of the 2D coordinate plane.
measure
Package measure Define spatial measurement function.
Package measure Define spatial measurement function.
operation
Package operation define valid func for geometries.
Package operation define valid func for geometries.
overlay
Package overlay the spatial geometric operation and reconstruction between entities is realized.
Package overlay the spatial geometric operation and reconstruction between entities is realized.
overlay/chain
Package chain Define Monotone Chains,it is a way of partitioning the segments of a linestring to allow for fast searching of intersections.
Package chain Define Monotone Chains,it is a way of partitioning the segments of a linestring to allow for fast searching of intersections.
overlay/snap
Package snap Snaps the vertices and segments of a Geometry's vertices to another Geometry's vertices.
Package snap Snaps the vertices and segments of a Geometry's vertices to another Geometry's vertices.
overlay/sweepline
Package sweepline Contains struct which implement a sweepline algorithm for scanning geometric data structures.
Package sweepline Contains struct which implement a sweepline algorithm for scanning geometric data structures.
relate
Package relate the criteria for judging the various topological relations between points, line and surface entities in DE-9IM model are given.
Package relate the criteria for judging the various topological relations between points, line and surface entities in DE-9IM model are given.
sharedpaths
Package sharedpaths Computer returns a collection containing paths shared by the two input geometries.
Package sharedpaths Computer returns a collection containing paths shared by the two input geometries.
subdivision
Package subdivision a topological subdivision to support creating triangulations and Voronoi diagrams.
Package subdivision a topological subdivision to support creating triangulations and Voronoi diagrams.
subdivision/quadedge
Package quadedge a topological subdivision of quadeges, to support creating triangulations and Voronoi diagrams.
Package quadedge a topological subdivision of quadeges, to support creating triangulations and Voronoi diagrams.
Package clusters is a spatial clustering algorithm.
Package clusters is a spatial clustering algorithm.
dbscan
Package dbscan clusters incoming points into clusters with params (eps, minPoints).
Package dbscan clusters incoming points into clusters with params (eps, minPoints).
kmeans
Package kmeans clusters incoming points into clusters with params (eps, minPoints) K-Means performs the division of objects into clusters that share similarities and are dissimilar to the objects belonging to another cluster.
Package kmeans clusters incoming points into clusters with params (eps, minPoints) K-Means performs the division of objects into clusters that share similarities and are dissimilar to the objects belonging to another cluster.
Package coordtransform is for transform coord.
Package coordtransform is for transform coord.
Example This is an example .
Example This is an example .
encoding
Example This is an example .
Example This is an example .
Package geoencoding is a library for encoding and decoding into Go structs using the geometries.
Package geoencoding is a library for encoding and decoding into Go structs using the geometries.
geobuf
Package geobuf is a library for encoding and decoding geobuf into Go structs using
Package geobuf is a library for encoding and decoding geobuf into Go structs using
geobuf/decode
Package encode is a library for decoding geobuf into Go structs using
Package encode is a library for decoding geobuf into Go structs using
geobuf/encode
Package encode is a library for encoding geobuf into Go structs using
Package encode is a library for encoding geobuf into Go structs using
geobuf/protogeo
Package protogeo is a library for encoding and decoding geobuf into Go structs using Code generated by protoc-gen-go.
Package protogeo is a library for encoding and decoding geobuf into Go structs using Code generated by protoc-gen-go.
geocsv
Package geocsv is a library for read csv file with geospatial data.
Package geocsv is a library for read csv file with geospatial data.
geojson
Package geojson is a library for encoding and decoding GeoJSON into Go structs using the geometries.
Package geojson is a library for encoding and decoding GeoJSON into Go structs using the geometries.
wkb
Package wkb is for decoding ESRI's Well Known Binary (WKB) format specification at https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Well-known_binary
Package wkb is for decoding ESRI's Well Known Binary (WKB) format specification at https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Well-known_binary
wkt
Package wkt is for decoding Well Known Text (WKT) format specification at https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Well-known_binary
Package wkt is for decoding Well Known Text (WKT) format specification at https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Well-known_binary
Package grid is used to generate grid data.
Package grid is used to generate grid data.
Package index define spatial index interface.
Package index define spatial index interface.
hprtree
Package hprtree a hprtree is a spatial index structure .
Package hprtree a hprtree is a spatial index structure .
intervalrtree
Package intervalrtree a tree is an R-tree index for one-dimensional intervals.
Package intervalrtree a tree is an R-tree index for one-dimensional intervals.
kdtree
Package kdtree A tree is a k-D tree index over 2-D point data.
Package kdtree A tree is a k-D tree index over 2-D point data.
quadtree
Package quadtree A Quadtree is a spatial index structure for efficient range querying
Package quadtree A Quadtree is a spatial index structure for efficient range querying
Package planar provides support for the implementation of spatial operations and geometric algorithms.
Package planar provides support for the implementation of spatial operations and geometric algorithms.
Package space A representation of a linear vector geometry.
Package space A representation of a linear vector geometry.
spaceerr
Package spaceerr A representation of error.
Package spaceerr A representation of error.
topograph
Package topograph the topological relations between points, line and surface entities in DE-9IM model are given.
Package topograph the topological relations between points, line and surface entities in DE-9IM model are given.
topological
Package topograph the topological relations between points, line and surface entities in DE-9IM model are given.
Package topograph the topological relations between points, line and surface entities in DE-9IM model are given.
Package utils A functions of utils.
Package utils A functions of utils.

Jump to

Keyboard shortcuts

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