POST
|
OK, I have a partial answer. If you want to use a 'standard' page size, it is easy to change. The StreetIndexReport.py gets its pagesize from reportlab - see line below from StreetIndexReport.py: from reportlab.lib.pagesizes import letter, landscape, portrait If you look in the reportlab source code, under src\reportlab\lib\pagesizes.py, you will see that it defines a number of pagesizes, such as LETTER, LEGAL, ELEVENSEVENTEEN, A0-A6, and B0-B6. So all you have to do is edit that line in the StreetIndexReport.py and change "letter" to the pagesize you want (ie "LEGAL"). And the index will be generated in the new page size. However, you may still need to change other things in the StreetIndexReport.py, because it appears hardwired in other ways for letter size. For example, inside StreetIndexReport.py, the create_page_portrait and create_page_landscape routines have a number of hardwired measurements in inches which assume letter size, and you will have to adjust to accomodate other page sizes. These include measurements for the position of the page number, the word "Index", the vertical lines between columns, horizontal lines, column title, and name of Organization. Later on in routine create_index_document you will have to create more column definitions in order to take advantage of the additional page size. So it looks like all of these adjustments are possible, will just take some testing to get it right. Unfortunately, our page size is not a standard page size. It is 11.75x15.75. The reportlab code exists under C:\Python27\ArcGIS10.2\Lib\site-packages\reportlab\lib\pagesizes.py. I have tried to modify the pagesizes.py to create a custom page size, but no luck yet. Any Fire Run Book/Python/reportlab wizards out there - would welcome your help. Thank you!
... View more
06-19-2014
07:07 PM
|
1
|
1
|
824
|
POST
|
Hi Michael, I got the name of the tool wrong - not sure why I wrote "StreetListing.py"; the tool I meant is StreetIndexReport.py from the Fire Run Book. The ArcGIS 10.1 Fire Run Book toolbox can be downloaded here: http://www.arcgis.com/home/item.html?id=b38c6c3fff844eda9b33ff54b24a349b Note the link for the 10.2 version currently has the wrong toolbox, so use the 10.1 version for now. Once Esri fixes the download, the link will be: http://www.arcgis.com/home/item.html?id=4e531fdbd9554105bdc5878220df5868 The 10.1 StreetIndexReport.py creates a nice index, but it would be great if we could change the page size. Good luck!
... View more
06-19-2014
04:36 PM
|
0
|
0
|
824
|
POST
|
Hi Trevor, I just posted a very similar thread - did not see yours til after I posted mine, but essentially same question. Need to make a larger page size. Did you ever figure out how ? Thank you - Miguel
... View more
06-19-2014
01:16 PM
|
0
|
0
|
194
|
POST
|
Is there a way to change the Page Size of the output street index ? It defaults to 8.5x11 (US Letter size). The tool works great, but our map book will be a much larger page size (11x15). I have looked at the Python script StreetIndexReport.py but do not see any page size settings there. Thanks in advance for a quick reply!
... View more
06-19-2014
01:08 PM
|
0
|
4
|
4052
|
POST
|
Hi Weatherly, I just went through this, so here goes... (buckle up and hang on!) You have to install ReportLab for the Street Index python script to work. The Street Index script uses ReportLab to create the PDF. Unfortunately, the install for ReportLab is not very straightforward (not as simple as double clicking an exe file). 1. Download ReportLab open source from this page: http://www.reportlab.com/opensource/ or here https://bitbucket.org/rptlab/reportlab The ReportLab download is a zip file, so unzip it. Once unzipped, there is a file called setup.py which I double clicked but I don't think it actually installed anything, because I continued to get the same error message you did (reportlab not installed). There is a README.txt file there, but what I gleaned from it is that you have to install reportlab using other tools (easy_install or pip - never heard of either before). 2. Download/Install pip for windows https://sites.google.com/site/pydatalog/python/pip-for-windows Keep hitting enter at the prompts until the pip install is complete. When it is finished, the pip window should stay open. 3. In the pip window command field, type: pip install reportlab This will install reportlab. At this point, the street index script should work. Below is a link to the Reportlab user guide. It has an Install section, but seems geared to developers rather than casual users: http://www.reportlab.com/docs/reportlab-userguide.pdf Good Luck!!! 🙂 If all else fails, call Esri technical support, they may be able to assist.
... View more
06-19-2014
12:55 PM
|
0
|
0
|
577
|
Title | Kudos | Posted |
---|---|---|
1 | 06-19-2014 07:07 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|