geometry

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

README

go-sfomuseum-geometry

Go package for manipulating geometries, in a SFO Museum context.

Important

Among the dependencies is the gogeos package which depends on the GEOS C library to be present. As such it is not "portable" the same way other Go tools are.

Documentation

Documentation is incomplete.

Documentation

Overview

Package geometry provides methods for manipulating geometries, in a SFO Museum context.

package geometry provides method for geometric operations related to SFO Museum (Who's On First) records.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CentroidWithFeature

func CentroidWithFeature(ctx context.Context, f *geojson.Feature) (float64, float64, error)

func ContainedBy

func ContainedBy(ctx context.Context, f *geojson.Feature, candidates ...*geojson.Feature) ([]*geojson.Feature, error)

func DifferenceFeatureCollection added in v0.0.2

func DifferenceFeatureCollection(ctx context.Context, source_fc *geojson.FeatureCollection, clip_fc *geojson.FeatureCollection) (*geojson.FeatureCollection, error)

func DifferenceGeometries

func DifferenceGeometries(ctx context.Context, base_geom *geos.Geometry, other_geoms ...*geos.Geometry) (*geos.Geometry, error)

func DifferenceGeometriesWithFeatures

func DifferenceGeometriesWithFeatures(ctx context.Context, base *geojson.Feature, others ...*geojson.Feature) (*geojson.Feature, error)

func GeosGeometryToOrbGeometry

func GeosGeometryToOrbGeometry(ctx context.Context, geos_geom *geos.Geometry) (orb.Geometry, error)

func OrbGeometryToGeosGeometry

func OrbGeometryToGeosGeometry(ctx context.Context, orb_geom orb.Geometry) (*geos.Geometry, error)

func UnionFeatureCollection

func UnionFeatureCollection(ctx context.Context, cols ...*geojson.FeatureCollection) (*geojson.FeatureCollection, error)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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