Documentation ¶
Index ¶
- type PointInPolygonService
- func NewPointInPolygonService(ctx context.Context, spatial_database_uri string, parent_reader_uri string) (*PointInPolygonService, error)
- func NewPointInPolygonServiceWithDatabaseAndReader(ctx context.Context, spatial_db database.SpatialDatabase, ...) (*PointInPolygonService, error)
- func NewPointInPolygonServiceWithOptions(ctx context.Context, opts *PointInPolygonServiceOptions) (*PointInPolygonService, error)
- type PointInPolygonServiceOptions
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 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) 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 }
Click to show internal directories.
Click to hide internal directories.