Select to view content in your preferred language

Return png from gp service

183
0
10-11-2023 08:05 AM
mody_buchbinder
Occasional Contributor III

I would like to create a png in a gp service and return it to the caller.

I found this: https://community.esri.com/t5/geoprocessing-questions/geoprocessing-service-returning-wrong-raster/m...  Is that true.

In my code I use CopyRaster to create the png.

There is a different in behavior if the service in async or syc.

When the service is async (default) the png is created but the return file have .tif  When I replace (in the client) the tif with png I can see it.

When the process is sync it will just not create the png - it will create a tif and return it.

I even tried to put a gdal code to translate tiff to png - it just ignore it without any error message.

anybody run into this problem?

 

0 Kudos
0 Replies