2

I'm trying to create a tile layer via the ArcGIS API for Python. When creating a tile layer in AGOL (manually) they have you specify a range of scales for the zoom level (e.g. 1:1000 or 1:4000).

But for the create_tile_service method, they tell you to specify the scales as a floating point number. So would the range of 1:1000 and 1:4000 look like this? Otherwise, I'm not sure what scale I should be referring to.

gis = GIS('arcgis.com','username','pwd')
some_feature_layer = feature_layer.url
some_feature_layer.create_tile_service('name',
                                        1000.00, # min scale
                                        4000.00) # max scale
2
  • If you have "bonus questions" then please ask them as new questions. Commented Mar 15, 2018 at 19:47
  • @k-freestone, looks like the first link in your question is broken. I know this question is goes WAY back, but if by chance you can fix it that would be most appreciated. Commented Jan 9 at 0:06

1 Answer 1

3

Yes, 1000.0000 is how you would specify a 1:1000 scale when creating a cached tile service. I use 1:1155581.108577 as my greatest scale and the parameter I pass is 1155581.108577.

Also, a tiled service is a REST service endpoint for a tiled layer. So they are not the same thing but when you make a request to a tiled service, you receive a tiled layer (or data from a tiled layer).

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.