Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create normalized tif as BigTIFF #696

Merged
merged 1 commit into from
Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- [#667](https://github.com/LayerManager/layman/issues/667) Fix broken statistics during normalization of float rasters with big nodata value.
- [#668](https://github.com/LayerManager/layman/issues/668) Fix broken size of raster in EPSG:3034 during normalization.
- [#669](https://github.com/LayerManager/layman/issues/669) Fix slow publication of vector layers metadata to Micka. The reason was slow guessing of [`spatial_resolution.scale_denominator`](doc/metadata.md#spatial_resolution) metadata property.
- [#697](https://github.com/LayerManager/layman/issues/697) Normalized GeoTIFF files are created as BigTIFF

## v1.17.0
2022-07-21
Expand Down
2 changes: 1 addition & 1 deletion doc/data-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Subsequently, asynchronous tasks ensure following steps:
- data file chunks and completed data files are saved to [filesystem](#filesystem) (if sent [asynchronously](async-file-upload.md))
- vector data files are imported to [PostgreSQL](#postgresql)
- PostgreSQL table with vector data is registered to [GeoServer](#geoserver)
- raster files are normalized and compressed to GeoTIFF with overviews (pyramids)
- raster files are normalized and compressed to BigTIFF GeoTIFF with overviews (pyramids)
- normalized GeoTIFF is registered to [GeoServer](#geoserver)
- SLD file is saved to [GeoServer](#geoserver) and registered to WMS layer
- QGS file is created on [filesystem](#filesystem) and through QGIS server registered to [GeoServer](#geoserver)
Expand Down
1 change: 1 addition & 0 deletions src/layman/layer/filesystem/gdal.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ def compress_and_mask_raster_file_async(*, output_file, input_file_path, color_i
bash_args = [
'gdal_translate',
'-co', 'compress=lzw',
'-co', 'BIGTIFF=YES',
]

# GeoServer can visualize grayscale raster with partial opacity from alpha band, but it has unstable contrast.
Expand Down