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

generate_tiles Ignores kml setting #20

Open
TWCCarlson opened this issue Oct 4, 2022 · 0 comments
Open

generate_tiles Ignores kml setting #20

TWCCarlson opened this issue Oct 4, 2022 · 0 comments

Comments

@TWCCarlson
Copy link

  • gdal2tiles version: 0.1.9
  • GDAL version: 3.0.2
  • Python version: 3.6.13
  • Operating System: Windows 10

Description

I am trying to generate tiles, but do not need .kml files.

What I Did

I configured my options as:

source_path = "full_image_0.png"
destination_path = "./own/"
options = {'zoom': 3,
            'nb_processes': 1,
            'tile_size': 256,
            's_srs':'EPSG:4326',
            'verbose': True,
            'profile': 'raster',
            'kml': False
        }

and then called:

gdal2tiles.generate_tiles(source_path, destination_path,**options)

The result was appropriately generated tiles accompanied by .kml files:

https://i.imgur.com/mzBDm9H.png

I traced your code but was unable to check where the value of kml changes from my input to True using print(), probably due to the multiprocessor threads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant