v3.0.0a1
Summary
This merge request is the first developmental pre-release for pfdf 3.0.0. This MR adds three new options to the Raster.from_points and Raster.from_polygons commands. These are:
-
dtype
: Allows the user to specify the dtype of the output raster when building from a data attribute field -
field_casting
: Specifies the casting rule for converting feature values to the selected dtype, and -
operation
: Allows the user to apply a function to the data field values before rasterizing
Notes for reviewer
The diffs/changes won't be very helpful for this one, as I've begun reorganizing parts of the backend in prep for 3.0.0 (but this does not affect the pfdf content). As such, please review the following sections of the pfdf.raster
subpackage:
-
_raster.Raster.from_points
: Added thedtype
,field_casting
, andoperation
options -
_raster.Raster.from_polygons
: Added thedtype
,field_casting
, andoperation
options -
_features._validate.field_options
: This is new - checks that field options are valid -
_features._features._parse_value
: This has changed - determines the value associated with a vector feature
Probably easiest to just clone the repo and check these sections directly...
Edited by King, Jonathan M