source:
src/common/bin/gdal2tiles-tilesize.patch@
a2b8052
| Last change on this file since a2b8052 was b72d9c4, checked in by , 7 years ago | |
|---|---|
|
|
| File size: 1.6 KB | |
-
gdal2tiles.py
old new def optparse_init(): 1192 1192 dest="nb_processes", 1193 1193 type='int', 1194 1194 help="Number of processes to use for tiling") 1195 p.add_option("--tilesize", dest="tilesize", default=256, 1196 type='int', 1197 help="Tile size in pixel of a tile") 1195 1198 1196 1199 # KML options 1197 1200 g = OptionGroup(p, "KML (Google Earth) options", … … class GDAL2Tiles(object): 1400 1403 1401 1404 # Tile format 1402 1405 self.tile_size = 256 1406 if options.tilesize: 1407 self.tile_size = options.tilesize 1403 1408 self.tiledriver = 'PNG' 1404 1409 self.tileext = 'png' 1405 1410 self.tmp_dir = tempfile.mkdtemp() … … class GDAL2Tiles(object): 1598 1603 # Calculating ranges for tiles in different zoom levels 1599 1604 if self.options.profile == 'mercator': 1600 1605 1601 self.mercator = GlobalMercator( )1606 self.mercator = GlobalMercator(tile_size=self.tile_size) 1602 1607 1603 1608 # Function which generates SWNE in LatLong for given tile 1604 1609 self.tileswne = self.mercator.TileLatLonBounds … … class GDAL2Tiles(object): 1641 1646 1642 1647 if self.options.profile == 'geodetic': 1643 1648 1644 self.geodetic = GlobalGeodetic(self.options.tmscompatible )1649 self.geodetic = GlobalGeodetic(self.options.tmscompatible, tile_size=self.tile_size) 1645 1650 1646 1651 # Function which generates SWNE in LatLong for given tile 1647 1652 self.tileswne = self.geodetic.TileLatLonBounds
Note:
See TracBrowser
for help on using the repository browser.
