Yirgacheffe 2.0#136
Merged
Merged
Conversation
a68843f to
bd64c3d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #38, #70.
Added
dimensionsproperty to layers to give the raster equivalent width and height.as_areaoperator to redefine the area of a layer for use in a calculation. Useful for overriding the default behaviour of operators in terms of the area they take, and for explicit clipping or padding of inputs.as_projectionoperator to reproject a raster or calculation to a new map projection.h3_tileto generate a layer for rasterizing H3 tiles.Changed
find_intersectionandfind_unionto top level of module.map_projectiontoprojection.astypetoas_typeto match similar Yirgacheffe operators for area and projection.Fixed
Removed
set_window_for_intersection,set_window_for_union,offset_window_by_pixels, andreset_window. Use the immutableas_areaoperator instead.windowproperty from the public API.Windowclass from the public API.PixelScaleclass, deprecated for a long time, useMapProjectioninstead.RasteredVectorLayerclass (useVectorLayerinstead).projectionandpixel_sizeproperties from layers that are now combined in theMapProjectionobject.layersfrom the public API, core methods (e.g.,read_raster,read_shape) or operators (e.g.,as_projection) should be used to access layers instead.LayerObjectAPI that was earlier exposed and had to be maintained for backwards compatibility.WGS_84_PROJECTIONconstant - for a while now this has been deprecated since we added more human readable string support (e.g., "epsg:4326").scaled_raster_from_rasterwhich created an in memory rescaled image. Useread_raster_liketo generate a dynamically scaled raster instead.RescaledRasterLayeras it is superceeded by theReprojectedRasterLayerwhich does both pixel scaling and map projection conversions.numpy_applyandshader_applyoperators, which was a backstop for lack of operators in early Yirgacheffe.geo_transformfrom layer, as it duplicated the same function on the layer's area object.