7

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?

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Aug 14, 2012 at 9:00
4
  • What type of text data is in your report (attribute table based)? Commented 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. Commented Aug 14, 2012 at 12:22
  • How do I want to generate the similar report on a web based application? Commented 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. Commented Apr 30, 2015 at 6:19

2 Answers 2

6

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.

answered Aug 14, 2012 at 14:56
5

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.

answered Aug 14, 2012 at 14:12
1
  • 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/… Commented Mar 6, 2017 at 22:08

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.