feature

package module
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: BSD-3-Clause Imports: 1 Imported by: 1

README

go-whosonfirst-feature

A Go package for working with Who's On First (WOF) GeoJSON records.

Important

This is exploratory work to develop a standard Go package for working with Who's On First (WOF) GeoJSON records that will eventually replace the go-whosonfirst-geojson-v2 package.

If you are reading this that means the work is still ongoing and this package may still change at any time.

Documentation

Go Reference

Documentation is incomplete at this time.

History

In the beginning there was a go-whosonfirst-geojson package. And then, because it was created before the native Go module and versioning systems were finalized, there was a go-whosonfirst-geojson-v2 package. Rather than resurrecting the go-whosonfirst-geojson package as go-whosonfirst-geojson/v3 it was decided to start a new package namespace from scratch.

First steps

The idea, so far, is to:

  • Use the paulmach/orb package for working with geometries.
  • Use the tidwall/gjson package for querying properties.
  • Writing custom code for deriving the meaning, or relevance, of properties.
  • Probably defining a custom interface for WOF features. This is what the go-whosonfirst-geojson-v2 package does. This package should work with both WOF style GeoJSON records as well as "plain-vanilla" GeoJSON records, within the limits of that interface.

Notes

See also

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPropertyNotFoundError

func IsPropertyNotFoundError(target error) bool

Types

type PropertyNotFoundErr

type PropertyNotFoundErr struct {
	// contains filtered or unexported fields
}

func PropertyNotFoundError

func PropertyNotFoundError(prop string) *PropertyNotFoundErr

func (*PropertyNotFoundErr) Error

func (e *PropertyNotFoundErr) Error() string

func (*PropertyNotFoundErr) Property

func (e *PropertyNotFoundErr) Property() string

Directories

Path Synopsis
package alt provides methods for working with "alternate" geometry records
package alt provides methods for working with "alternate" geometry records
package geometry provides methods for deriving and interpreting Who's On First geometries.
package geometry provides methods for deriving and interpreting Who's On First geometries.
package properties provides methods for deriving and interpreting Who's On First properties.
package properties provides methods for deriving and interpreting Who's On First properties.

Jump to

Keyboard shortcuts

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