Skip to content

Discussion #1

@rafaqz

Description

@rafaqz

This package defines a simple Extent object that gives you the bounds for each dimension covered by any spatial object - like the edges or a raster, or the min/max values for each dimension in a vector or table of points.

@evetion, this should work for the GeoInterface extent object. Although I'm wondering where we should put it...

A question I have with the design is if we can always assume we know the dimension names, and how often/where we don't know them. Currently the Extent object can hold a Tuple or a NamedTuple, to handle both cases. But I'm not sure how necessary that is.

@Tokazama if you have any input on this that would be useful at this early stage - especially to tie in with SpatioTemporalTraits.jl. The idea here is that all spatial objects have extents / bounding boxes, and we can have a generic Extent object that defines these in a standard way, returned by extent(obj). As much as possible an Extent will also have dimension names, as Symbols. Comparing named extents compares by name, ignoring order.

I guess extent will provide your spatial_order, spatial_first and spatial_last, although it doesn't distinguish the space/time difference.

Primarily this is for GeoInterface.jl and Rasters.jl and other GeoSpatial packages to be able to share extent information in a generic way. I will also use it in DimensionalData.jl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions