Commit afb2e24
authored
* Sync compression docstrings against actual codec map (#1562)
_writer.write listed three codecs ('none', 'deflate', 'lzw') while
_compression_tag accepts nine. to_geotiff listed six and omitted
'lz4', 'jpeg2000'/'j2k', and 'lerc'. Update both docstrings to match
_VALID_COMPRESSIONS / _compression_tag.
Also fill in the missing parameter docs on _writer.write that grew
silently as features landed: compression_level, overview_resampling,
crs_wkt, raster_type, x_resolution, y_resolution, resolution_unit,
gdal_metadata_xml, extra_tags, bigtiff, max_z_error.
Docs-only change.
* Document JPEG constraints and overview_levels list-length semantics
- JPEG entry in the compression= list now notes the hard uint8 + 1-or-3
bands constraint enforced in write().
- overview_levels docstring no longer implies the values are decimation
factors. The implementation only consumes the list length; each
overview unconditionally halves the previous resolution.
1 parent 0e60724 commit afb2e24
2 files changed
Lines changed: 50 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
817 | 821 | | |
818 | 822 | | |
819 | 823 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
| 1001 | + | |
| 1002 | + | |
1001 | 1003 | | |
1002 | 1004 | | |
1003 | 1005 | | |
1004 | | - | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
1005 | 1016 | | |
1006 | 1017 | | |
1007 | 1018 | | |
| |||
1013 | 1024 | | |
1014 | 1025 | | |
1015 | 1026 | | |
1016 | | - | |
1017 | | - | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1018 | 1057 | | |
1019 | 1058 | | |
1020 | 1059 | | |
| |||
0 commit comments