consbio / tpkutils

ArcGIS Tile Package Utilities
Other
112 stars 28 forks source link

Add hash for transparent empty PNGs #14

Closed mapiworks closed 7 years ago

mapiworks commented 7 years ago

147ca8bf480d89b17921e24e3c09edcf1cb2228b

brendan-ward commented 7 years ago

thanks @mapiworks

Do you have a small TPK file I could use for testing this addition?

brendan-ward commented 7 years ago

resolved by 5dfba9d55a514c4e533ea6cafcf622fd1d029e2e

mapiworks commented 7 years ago

The are all huge, sorry.

Also, I found it useful to get the tile root as a user input, see my mod attached.

custom_tile_root = input("Layer path [Layers]: ")      
if not custom_tile_root:
   custom_tile_root = "Layers"

init.py.zip

brendan-ward commented 7 years ago

@mapiworks I don't want to add input() into the internal python API (it isn't entirely CLI at that point), but I am open to having it passed in as a parameter, and making it an option for the CLI.

How did you create a TPK with a file root other than "Layers"? I'd like to reproduce for a test case.

mapiworks commented 7 years ago

They are provided by clients. For my understanding they are using the ARCGIS server.

brendan-ward commented 7 years ago

If we can automatically determine the tile root, regardless of name, that would be better than passing that in as a parameter. Does that seem reasonable to you?

mapiworks commented 7 years ago

Yes, absolutely.

brendan-ward commented 7 years ago

@mapiworks added support for alternative tile root names in 2391c0d5692618496f5cf35d530760133b6c3fce