pointinpolygon

package
v7.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PointInPolygonService

type PointInPolygonService struct {
	ResultsCallback hierarchy_filter.FilterSPRResultsFunc
	UpdateCallback  hierarchy.PointInPolygonHierarchyResolverUpdateCallback
	// An optional list of paths (properties) to copy from a parent record to a matching point-in-polygon record.
	ToCopyFromParentOnUpdate []string
	PlacetypesDefinition     placetypes.Definition
	// contains filtered or unexported fields
}

func NewPointInPolygonService

func NewPointInPolygonService(ctx context.Context, spatial_database_uri string, parent_reader_uri string) (*PointInPolygonService, error)

func NewPointInPolygonServiceWithDatabaseAndReader

func NewPointInPolygonServiceWithDatabaseAndReader(ctx context.Context, spatial_db database.SpatialDatabase, parent_reader reader.Reader) (*PointInPolygonService, error)

func NewPointInPolygonServiceWithOptions

func NewPointInPolygonServiceWithOptions(ctx context.Context, opts *PointInPolygonServiceOptions) (*PointInPolygonService, error)

func (*PointInPolygonService) Update

func (s *PointInPolygonService) Update(ctx context.Context, body []byte) (bool, []byte, error)

func (*PointInPolygonService) UpdateWithInputs

func (s *PointInPolygonService) UpdateWithInputs(ctx context.Context, body []byte, inputs *spatial_filter.SPRInputs) (bool, []byte, error)

type PointInPolygonServiceOptions

type PointInPolygonServiceOptions struct {
	SpatialDatabase      database.SpatialDatabase
	ParentReader         reader.Reader
	PlacetypesDefinition placetypes.Definition
	// Mapshaper ...
	Logger *log.Logger
	// SkipPlacetypeFilter is an optional boolean flag to signal whether or not point-in-polygon operations should be performed using
	// the list of known ancestors for a given placetype. Default is false.
	SkipPlacetypeFilter bool
}

Jump to

Keyboard shortcuts

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