Control antialiasing for export to tiff/pdf in arcpy.mp

2655
6
01-25-2021 05:25 AM
Status: Implemented
Labels (1)
ChrisAnsorge
New Contributor II

Idea

Enable settings in arcpy.mp - ExportToTIFF to control antialiasing and to make it possible to export raster images without anti-aliasing being applied.

 

Background and motivation

In ArcMap environment our cartographic workflows currently build on "Export to separated TIFF" and 1bit-TIFF (without anti-aliasing) for further post-processing to create the Swiss national maps and other high quality map products. In ArcGIS Pro "Export to separated TIFF" functionality isn't supported any longer. Furthermore, we discovered that while the manual export still honors the anti-aliasing choice in the display options, the function ExportToTIFF in arcpy.mp doesn't. Instead it always applies anti-aliasing and disregards the anti-aliasing settings made in the ArcGIS Pro project.

For the users it is of crucial importance to still have at least one option to export raster images without anti-aliasing for analytical or post-processing purposes via arcpy.

 

Thanks a lot for your vote and support! 🙂

Best regards from Switzerland

Chris

6 Comments
JeffBarrette
Status changed to: Open

Thank you Chris.  This is something we will consider for near term. 

Jeff - Layout and arcpy.mp teams

JeffBarrette
Status changed to: In Product Plan

Will be available in the Pro 2.9 release.

Jeff - Layout and arcpy.mp teams

KoryKramer
Status changed to: Implemented

This is implemented in ArcGIS Pro 2.9.  See Ideas in ArcGIS Pro 2.9 

KoryKramer_0-1636761609984.png

 

ChrisAnsorge

Thanks a lot!

We will check it out as soon as we get the version 2.9 in our hands 🙂

Best regards

Chris

DavidNovak

Hello dear @ChrisAnsorge ,

were you able to test this possibility in Display Options?

Currently, we trying to turn off antialiasing but we are not successful.

DavidNovak_0-1644241111136.png

Our result is on the right site. But we need the left site.

DavidNovak_1-1644241144747.png

 

Any ideas?

 

David

 

JeffBarrette

David, Are you using ArcGIS Pro 2.9?  I just compared output again and antialiasing settings are being honored as expected.

If it is NOT working as you expect, please include a sample export line of code.

Capture.PNG

p = arcpy.mp.ArcGISProject('current')
lyt = p.listLayouts()[0]
lyt.exportToTIFF(r"C:\Temp\AntiAliasing\AntiAlias_OFF_PyWin.tif", 300, '32-BIT_WITH_ALPHA', 'LZW', 100, False, False)