org.locationtech.rasterframes.extensions.Implicits
Coerces this DataFrame to a RasterFrameLayer after ensuring it has:
Coerces this DataFrame to a RasterFrameLayer after ensuring it has:
If any of the above are violated, and IllegalArgumentException is thrown.
validated RasterFrameLayer
IllegalArgumentException
when constraints are not met.
Converts DataFrame to a RasterFrameLayer if the following constraints are fulfilled:
Converts DataFrame to a RasterFrameLayer if the following constraints are fulfilled:
Some[RasterFrameLayer] if constraints fulfilled, None otherwise.
Get the columns that look like CRS
s.
Get the columns that look like CRS
s.
Get the columns that look like Extent
s.
Get the columns that look like Extent
s.
Tests for the following conditions on the DataFrame:
Tests for the following conditions on the DataFrame:
true if all constraints are fulfilled, false otherwise.
Get the columns that are not of type Tile
Get the columns that are not of type Tile
Get the columns that look like ProjectedRasterTile
s.
Get the columns that look like ProjectedRasterTile
s.
Performs a jeft join on the dataframe right
to this one, reprojecting and merging tiles as necessary.
Performs a jeft join on the dataframe right
to this one, reprojecting and merging tiles as necessary.
The operation is logically a "left outer" join, with the left side also determining the target CRS and extents.
Right side may have multiple Tile columns. This variant allows for the specific geospatial columns and join
expression to be specified.
right dataframe
join expression
this (left) dataframe's Extent column
this (left) datafrasme's CRS column
right dataframe's CRS extent
right dataframe's CRS column
string indicating method to use for resampling.
joined dataframe
Performs a jeft join on the dataframe right
to this one, reprojecting and merging tiles as necessary.
Performs a jeft join on the dataframe right
to this one, reprojecting and merging tiles as necessary.
The operation is logically a "left outer" join, with the left side also determining the target CRS and extents.
Right side may have multiple Tile columns. This variant allows for the specific geospatial columns to be
specified. The join expression used is:
st_intersects(st_geometry(leftExtent), st_reproject(st_geometry(rightExtent), rightCRS, leftCRS))
right dataframe
this (left) dataframe's Extent column
this (left) datafrasme's CRS column
right dataframe's CRS extent
right dataframe's CRS column
string indicating method to use for resampling.
joined dataframe
Performs a jeft join on the dataframe right
to this one, reprojecting and merging tiles as necessary.
Performs a jeft join on the dataframe right
to this one, reprojecting and merging tiles as necessary.
The operation is logically a "left outer" join, with the left side also determining the target CRS and extents.
Right side may have multiple Tile columns. Assumes both dataframes use the column names extent
and crs
for
the Extent and CRS details for each row. The join expression used is:
st_intersects(st_geometry(leftExtent), st_reproject(st_geometry(rightExtent), rightCRS, leftCRS))
Right side of the join.
string indicating method to use for resampling.
joined dataframe
Get the spatial column.
Get the spatial column.
Get the temporal column, if any.
Get the temporal column, if any.
Get the columns that are of type Tile
Get the columns that are of type Tile
Layout contents of RasterFrame to a layer.
Layout contents of RasterFrame to a layer. Assumes CRS and extent columns exist.
Renames all columns such that they start with the given prefix string.
Renames all columns such that they start with the given prefix string. Useful for preparing dataframes for joins where duplicate names may arise.