New answers tagged

0

The one known issue I am aware of is a crash when exporting with dynamic text elements which have no contents. There is a fix for this coming in next maintenance update (2.9.1), or you can remove the blank text elements manually from the layout. Gross failure to export means something else is going wrong. If it's specific to this map/layout, please share ...


4

You can use Python's re module for wildcards. Here is how you can do it with re.match() import re for lyr in mp.listLayers(): if lyr.isFeatureLayer: sym = lyr.symbology if re.match("FirePoint.+", lyr.name): lyr.name = "Fire Origin" sym.renderer.symbol.applySymbolFromGallery("Fire Station&...


1

Add feature, parent parameters to the definition line. Although not needed in the context of the layout, they are mandatory. There are some issues in GitHub. ... @qgsfunction(args= 'auto' , group='Custom') def GetDynamicItemHeight (LayoutName , ItemName, feature, parent): ... ... And use ' instead of " in expression for ItemName ...


0

This still appears to be an issue in 2.8. The selected answer, Printing to PDF, is fine for users that do not need to utilize Python automation, but without an arcpy.mapping.PrintMap() parallel in ArcGIS Pro, this solution lacks some functionality. A solution to this that also allows the use of ArcPy's layout.exportToPDF() is to set the base raster ...


Top 50 recent answers are included