EstimateTileCache Throws Invalid State Exception?

04-16-2019 11:53 AM
New Contributor III

.NET Runtime SDK 100.4

I'm using the EstimateTileCache api to determine if my area of interest is too big for the the max tile download. But, I give it an export params object that results in 161,871 tiles when the max is 150,000 and it throws an exception:

Illegal State: Server job has failed. ERROR 001564: Requested tile count (161,871) exceeds the maximum allowed number of tiles (150000) to be exported for service World_Imagery:MapServer.

If I wanted to handle an exception, I could've just gone right for the ExportTileCache job. Isn't the purpose of this api to tell me my request is too big before I send it?

0 Kudos
0 Replies