C:\Users\云实>python D:/Python39/Scripts/gdal2tiles.py -z 1-18 "D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/NDVIresult_DJI_style004.tif" D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/tiles --xyz --processes 4 --verbose
Options: {'profile': 'mercator', 'resampling': 'average', 's_srs': None, 'zoom': [1, 18], 'resume': False, 'srcnodata': None, 'tmscompatible': None, 'xyz': True, 'verbose': True, 'exclude_transparent': None, 'quiet': None, 'nb_processes': 4, 'mpi': None, 'tilesize': 256, 'tiledriver': 'PNG', 'kml': None, 'url': '', 'webviewer': 'all', 'title': 'NDVIresult_DJI_style004.tif', 'copyright': '', 'googlekey': 'INSERT_YOUR_KEY_HERE', 'bingkey': 'INSERT_YOUR_KEY_HERE', 'mapml_template': None, 'webp_quality': 75, 'webp_lossless': None, 'processes': 1}
Input: D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/NDVIresult_DJI_style004.tif
Output: D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/tiles
Cache: 3262 MB
Begin tiles details calc
Input file: (10686P x 8360L - 3 bands)
NODATA: []
Preprocessed file:(10686P x 8360L - 3 bands)
Modified -dstalpha warping result saved into 'tiles1.vrt'
Projected file: tiles.vrt (10739P x 8480L - 4 bands)
Bounds (output srs): 11578053.166325, 3563153.151313, 11578302.653489, 3563350.157659
Bounds (latlong): (30.462605551329265, 104.00742119658143), (30.46413098324938, 104.00966237790443)
MinZoomLevel: 1
MaxZoomLevel: 18 (0.597164)
Generating Base Tiles:
Tiles generated from the max zoom level:
----------------------------------------
dataBandsCount: 3
tilebands: 4
1 / 9, D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/tiles\18\206807\107762.png
Native Extent (querysize 6580): (0, 0, 705, 378), (5875, 6202, 705, 378)
2 / 9, D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/tiles\18\206808\107762.png
Native Extent (querysize 6580): (705, 0, 6580, 378), (0, 6202, 6580, 378)
3 / 9, D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/tiles\18\206809\107762.png
Native Extent (querysize 3454): (7285, 0, 3454, 378), (0, 6202, 3454, 378)
4 / 9, D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/tiles\18\206807\107763.png
Native Extent (querysize 6580): (0, 377, 705, 6580), (5875, 0, 705, 6580)
5 / 9, D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/tiles\18\206808\107763.png
Native Extent (querysize 6580): (705, 377, 6580, 6580), (0, 0, 6580, 6580)
6 / 9, D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/tiles\18\206809\107763.png
Native Extent (querysize 3454): (7285, 377, 3454, 6580), (0, 0, 3454, 6580)
7 / 9, D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/tiles\18\206807\107764.png
Native Extent (querysize 6580): (0, 6957, 705, 1523), (5875, 0, 705, 1523)
8 / 9, D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/tiles\18\206808\107764.png
Native Extent (querysize 6580): (705, 6957, 6580, 1523), (0, 0, 6580, 1523)
9 / 9, D:/实时建模/实时建模V3/任务/建模826/2cm切图结果912/tiles\18\206809\107764.png
Native Extent (querysize 3454): (7285, 6957, 3454, 1523), (0, 0, 3454, 1523)
Tiles details calc complete.
D:\Python39\lib\site-packages\osgeo\osr.py:410: FutureWarning: Neither osr.UseExceptions() nor osr.DontUseExceptions() has been explicitly called. In GDAL 4.0, exceptions will be enabled by default.
warnings.warn(
D:\Python39\lib\site-packages\osgeo\osr.py:410: FutureWarning: Neither osr.UseExceptions() nor osr.DontUseExceptions() has been explicitly called. In GDAL 4.0, exceptions will be enabled by default.
warnings.warn(
D:\Python39\lib\site-packages\osgeo\osr.py:410: FutureWarning: Neither osr.UseExceptions() nor osr.DontUseExceptions() has been explicitly called. In GDAL 4.0, exceptions will be enabled by default.
warnings.warn(
D:\Python39\lib\site-packages\osgeo\osr.py:410: FutureWarning: Neither osr.UseExceptions() nor osr.DontUseExceptions() has been explicitly called. In GDAL 4.0, exceptions will be enabled by default.
warnings.warn(
Generating Overview Tiles:
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "D:\Python39\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "D:\Python39\lib\site-packages\osgeo_utils\gdal2tiles.py", line 1576, in create_overview_tile
logger.debug(f"\tbuild from zoom {base_tz}, tiles: %s" % ",".join(base_tiles))
TypeError: sequence item 0: expected str instance, tuple found
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Python39\Scripts\gdal2tiles.py", line 17, in <module>
sys.exit(main(sys.argv, called_from_main=True))
File "D:\Python39\lib\site-packages\osgeo_utils\gdal2tiles.py", line 4528, in main
return submain(argv, called_from_main=called_from_main)
File "D:\Python39\lib\site-packages\osgeo_utils\gdal2tiles.py", line 4558, in submain
multi_threaded_tiling(input_file, output_folder, options, pool)
File "D:\Python39\lib\site-packages\osgeo_utils\gdal2tiles.py", line 4459, in multi_threaded_tiling
for _ in pool.imap_unordered(
File "D:\Python39\lib\multiprocessing\pool.py", line 870, in next
raise value
TypeError: sequence item 0: expected str instance, tuple found
C:\Users\云实>
最新发布