bruty.world_raster_database Module¶
Functions¶
|
A decorator indicating abstract methods. |
|
Returns the affine transform – normally row, column to x,y position. |
|
|
|
If both arrays have a nan value treat that as equal even though numpy threats them as not equal |
|
Compute a coherent min and max position and shape given a resolution. |
|
|
|
|
|
Makes a north up gdal dataset with nodata = numpy.nan and LZW compression. |
|
Makes a north up gdal dataset with nodata = numpy.nan and LZW compression. |
|
Merge a new dataset (array) into an existing dataset (array). |
|
|
|
This is a helper function for shutil.rmtree to take care of something happening on (at least) my local machine. It seems that the Windows system deletes don’t remove the files immediately and the directory isn’t empty when rmdir is called. Running the function again will work, so adding a delay to see if the system catches up. If a file handle is actually open then the call below will fail and the exception will be raised, just a bit slower. File “C:PydroTrunkMiniconda36envsPydro38_Testlibshutil.py”, line 617, in _rmtree_unsafe os.rmdir(path) OSError: [WinError 145] The directory is not empty: ‘C:/GIT_Repos/nbs/xipe_dev/xipe2.bruty/test_data_output/tile4_utm_db_grid/tmp1hbjeurd\3533’. |
|
Classes¶
|
This class acts like a full history but really only keeps one raster, the current data. |
|
|
|
|
|
Use the Lat Lon tiles like TMS but the Y indexing is reversed, visualized at https://www.maptiler.com/google-maps-coordinates-tile-bounds-projection/ |
|
Use the global spherical mercator projection coordinates (EPSG:900913) to match the Google Tile scheme, visualized at https://www.maptiler.com/google-maps-coordinates-tile-bounds-projection/ |
|
|
|
|
|
alias of |
|
|
|
This class works on top of a History (passed in via ‘history_data’) instance to return the actual surface at a certain time as opposed to the deltas that the ‘history_data’ holds |
|
|
|
|
|
|
|
Use the global spherical mercator projection coordinates (EPSG:900913) to match the Google Tile scheme, visualized at https://www.maptiler.com/google-maps-coordinates-tile-bounds-projection/ |
|
A generic coordinate to tile index class. |
|
|
|
|
|
|
|
|
|
Class to control Tiles that cover the Earth. |
|
Class to control Tile addressing. |