Does anyone have experience in creating reports from your ArcGIS data (geodatabase, map exports) using a python reporting engine? In my current project, we are using Jasper Reports in the following way: A custom geoprocessing tool creates a intermediate XML file containing the data from the Oracle SDE and an exported map image as encoded byte array. This file and a template from iReport is used to generate a PDF file by Jasper Reports.
I am looking for a different solution using a report engine based on python (Jasper is based on Java), I can imagine that a python approach can be better integrated in ArcGIS.
Did anyone tried this before?
-
What type of text data is in your report (attribute table based)?artwork21– artwork212012年08月14日 11:35:06 +00:00Commented Aug 14, 2012 at 11:35
-
Yes, attribute tables of feature classes in a geodatabase for example. But it should not be restricted to that kind of data. A "screenshot" of the map should also be exported, by arcmap or may be by a map service.offermann– offermann2012年08月14日 12:22:11 +00:00Commented Aug 14, 2012 at 12:22
-
How do I want to generate the similar report on a web based application?DynamicPacific– DynamicPacific2015年04月28日 16:51:37 +00:00Commented Apr 28, 2015 at 16:51
-
That would be another question. JasperReports can be used for reporting in a web based application, either by writing a Java Servlet or using the server of JasperSoft.offermann– offermann2015年04月30日 06:19:03 +00:00Commented Apr 30, 2015 at 6:19
2 Answers 2
At the 2012 ESRI User conference, they demonstrated building custom PDF pages and reports using the open-souce ReportLab toolkit.
Check out the Conference proceedings and look at the Technical Workshops for Python Map Automation. One of them makes a reference to this sample script.
There is a new development in 10.1 for Python access in reporting: ExportReport.
Essentially you create a report and save the layout as a report layout file (.rlf). When you call ExportReport from arcpy you access the layout file.
-
In case anyone is looking at this answer with web applications in mind, you should be aware that: the ExportReport function has a dependency on the ArcMap installation. Therefore, ExportReport can only be executed on machines that have ArcMap installed. ExportReport will not run using stand-alone installations of ArcGIS Engine or ArcGIS for Server. Moreover, ExportReport will not work as a Geoprocessing Service. Source: desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/…Pascual Benito– Pascual Benito2017年03月06日 22:08:18 +00:00Commented Mar 6, 2017 at 22:08
Explore related questions
See similar questions with these tags.