geomconv

package module
v0.0.0-...-8605158 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2015 License: GPL-3.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

geom2rtree

package geom2rtree calculates the rtreego bounding box of a Geom shape

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Geom2Shp

func Geom2Shp(g geom.T) (shp.Shape, error)

Geom2Shp converts a geometry object to a shapefile shape.

func GeomToRect

func GeomToRect(g geom.T) (*rtreego.Rect, error)

Calculate the rtreego bounding box of a geom shape.

func OldToNew

func OldToNew(old oldgeom.T) newgeom.T

func Shp2Geom

func Shp2Geom(n int, s shp.Shape) (int, geom.T, error)

Shp2Geom converts a shapefile shape to a geometry object that can be used with other packages. This function can be used to wrap the go-shp "Shape()" method.

func ShpAttributeToFloat

func ShpAttributeToFloat(attr string) (float64, error)

ShpAttrbute2Float converts a shapefile attribute (which may contain "\x00" characters to a float.

func ShpFieldName2String

func ShpFieldName2String(name [11]byte) string

ShpFieldName2String converts the shapefile field name into a string that can be more easily dealt with.

Types

This section is empty.

Jump to

Keyboard shortcuts

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