Saturday 9 April 2016

arcgis desktop - Is there a way to remove this thick gray border from my raster symbology in the legend?


I have this problem with different raster layers, in this instance it's land use data. In my layout, and in a rendered PDF of my map, the legend entry for the raster layer has an ugly, thick gray border around my raster color patches. Here's how they look when rendered to PDF:


enter image description here


Sometimes it's even worse, and ArcGIS appears to randomly choose a thick border for some colors and a thinner, lighter one for others, making my legend very ugly. Here's another example in a finished PDF:


enter image description here


Here's what the same legend looks like in the ArcGIS layout. The border width looks the same, nothing like the PDF. The color differences are not as pronounced as in the PDF but you can see they're there:


enter image description here


Is there any way to edit or remove those gray borders? I've searched a bit online and the most recent thread I've found is this one from the ArcGIS forums, with a couple workarounds that I may resort to, but I'm hoping for a simpler solution.



FYI, my rasters' symbology is set to use Unique Values, but using Colormap gives the same results.



Answer



Did some further digging, and it turns out this is a known bug at NIM-000130. There is a suggested coding workaround there. I did find some references to using old mxds or the size of the patch used (smaller makes it worse) causing the width difference, as well as a couple of other workarounds. Otherwise, the methods you originally linked to had some good (or the same) ideas. As it stands there is no way through the UI to remove the patch border for raster (I also tried creating a custom patch, for the record).


Forum Posts:



And a blog entry with another alternative method.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...