Tag Info

Hot answers tagged

11

This is typically something you can do with Data Driven Pages. The static text and images is not a problem, you can modify one lay out and this will be transmitted to all other layouts. For the dynamic text, it can be driven based on one of the attribute fields using this syntax " domainlookup="true"/> The most complicated part is what you show on the ...


8

That feature is called Atlas in QGIS and you'll find it as part of the Print Composer. It's described in the user manual.


7

The only attribute table accessible through Dynamic Text is the attribute table of your Data Driven Pages index layer. I'm assuming your Data Driven Pages map book is based off of your grid layer, and if so then you're in luck. Using a dyn tag of type 'page', you can access any property of the index layer <dyn type="page" ...


5

I was wondering about the same but found that there is no such out-of-the-box tool. I made an add-on for this. You can download it here: http://www.arcgis.com/home/item.html?id=a9b032f739254ebeb6221c9294ebc886


5

There isn't a really an elegant way to do this, as far as I know. However, I've recently successfully accomplished something similar using multiple copies of the layer and using Page Definitions. Here's the basic idea, and you can modify it to suit your needs: The layer which defines your Data Driven Pages should show the symbology but no labels. Then, ...


4

You will need to set up two map documents, one for portrait and one for landscape. Your index layer will need a field to store the page orientation, something like "Pagesize". Then use the definition query on your index layer to limit which features will be included in that set of maps, e.g., [Pagesize]="85x11P" or [PageSize]="85x11L". It's pretty ...


3

Here's my thinking in pseudocode: you'd get your MapDocument, then ListDataFrames, then ListLayers. Then you should be able to iterate through the Layers, toggle the Layer's Visibility property on, ExportToPDF (or whatever), then toggle Visibility off again, and move on to the next Layer. If you want to leave certain layers on as base layers, maybe you ...


3

There is an excellent article written about generating pdf-documents using arcpy. It takes you through the basics and also shows more sophisticated features. Combining data driven pages with Python and arcpy.mapping You can easily generate an index page using pyfpdf. With arcpy you also have access to the contents of your polygon index dbf-file.


3

If you have not already gone through the ESRI arcpy.mapping tutorials and ArcGIS Resources pages, they have heaps of sample scripts to comb through. I would suggest looking at these first: arcpy.mapping / Map Automation Group ArcGIS Resource, Python for ArcGIS Tutorials: Introduction to arcpy.mapping Getting started with arcpy.mapping tutorial ...


3

11.Type the following for the text: Coordinate System: dyn type="dataFrame" name="Detail Map" property="sr" srProperty="name"/ dyn type="dataFrame" name="Detail Map" property="sr" srProperty="projection" preStr="Projection: " newLine="true" emptyStr=""/ dyn type="dataFrame" name="Detail Map" property="sr" srProperty="datum" preStr="Datum: " ...


3

This code may help. It does not use Data Driven Pages, but more or less emulates their functionality, while enabling you to have the flexibility to use the extent of each feature in your index layer to set the extent of both the Main Map and the Overview, before zooming out the Overview by a factor of 10. I think DDP is great for creating "no code" map ...


3

I haven't played much with Data Driven Pages but if your tower ranges are all in the same feature class, you might be able to use Page Definition Queries to automatically display just one specific tower per page.


3

I would set up the DDP using the pipeline as the ddp layer. In the Python script, iterate over the pages and check the data frame scale. Using some conditional logic, you can calculate what the scale for that map should be, and then export. Here is part of a script I have used in the past: import arcpy mxd = arcpy.mapping.MapDocument(r"C:\MyMap.mxd") df = ...


3

First thing, set up your Data driven pages on the inset map - then what you can do is in your data driven pages setup dialog - on the extent page - set the map extent to best fit - say 105% - this way it will always zoom to the parcel of interest. On the other data frame - adjust you scale so it is fixed at 800.


3

I'm assuming the page numbers are pulled from the attribute table of the layer you are using to create the DDP and can therefore add a dynamic attribute. If you have two text boxes one on each side for odd and even pages I think you should have two separate fields in the attribute table, one for odd the other even which would only display the text on the ...


2

Why wouldn't you put all the towers in a single feature class, perhaps as a circle feature representing the range for each, and then use a Dynamic Text element for the title, reading it from a field in the data? Am I misunderstanding your requirements?


2

To ensure that the correct scale is used (in my case, the scales are valued stored in a field scale_field), the following code is added to the for loop which exports all the maps (the input document must have Data Driven Pages Enabled): #some code here mxd = arcpy.mapping.MapDocument(inputMapDoc) df = arcpy.mapping.ListDataFrames(mxd)[0] #using the 1st data ...


2

Firstly merge all your polygon (extent) files into one. Then add a column to the merged ddp index file called "scale" for example and populate this with the optimum scale. Then create a definition query for say scale=10000 (for 1:10000), set your scale etc and save this as mymxd_10k.mxd, repeat for the other scales. Then use the basic script from my ...


2

http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000p07000000 I've used Python, not ArcObjects for this, but looks like you are limited to the interfaces, IPrintAndExport and IPageIndexControl, could be more.... And the methods with Python scripting are recommended: ...


2

A code free method When you turn on data driven pages you can specify a definition query that is dependant on the page number. Simply use that query to hide all features from layers that you do not want to show. Setup your map frames to be in the same location, but with a field for page number. Setup Data driven pages with the page number as the name ...


2

Use the Other Data Frame Extent Option in the overview data frame. See http://blogs.esri.com/esri/arcgis/2010/02/02/creating-dynamic-locator-maps-and-adding-page-effects-to-your-data-driven-pages/


2

From the online help for data driven pages and ExportToPDF, it looks like you want to identify page_range_type = 'RANGE' page_range_string = '14, 13, 23, 24, 26'


2

I think you should put Data Driven Pages (DDP) to one side for now, because if that introduces any limitations to an application like this, they can usually be overcome by using a SearchCursor to iterate through the feature class that would have been your DDP index. The key thing will be whether you can get ArcPy to run arcpy.mapping.ExportReport to run ...


2

Maksim, It may be that you haven't actually selected the "Best Fit" option, which would then enable all of the grayed out boxes within it. Try selecting the radio button, next to the words, and see how it changes, as in the before and after pictures below: Prior to Selecting Best Fit: After Selecting Best Fit: As you can see, the parameters within this ...


2

This code should achieve what you have asked (not tested): import arcpy import os mxd = arcpy.mapping.MapDocument(r"C:\temp\mymap.mxd") output_folder = r"C:\temp" ddp_lyr = mxd.dataDrivenPages.indexLayer pdf_field = "RoadType" #Get a list of unique values to group by pdf_list = set([row[0] for row in arcpy.da.SearchCursor(ddp_lyr,pdf_field)]) for pdfName ...


2

With that network of lines, there's no way for ArcGIS to figure out which page you'd like to be "first". The strip map tool is meant to create a mapbook along one line feature, it doesn't do so well with more than one, especially if they crisscross each other like yours do. However, it does look like it covered all of your lines with mapbook pages, and ...


2

I was able to do this when I had them for ArcGIS 9.3 and it works very good. I dont know if this will work with ArcGIS 10.0 or later as it stated on their website but I'd give it a try. ArcMapBook Edit: This can be accomplished by simply creating a rectangular page for each set of layers stacked directly on top of each other. Name each page separately ...


2

I think your requirements would be most easily and intuitively met by having a single map with all the layers included and then to write a simple Python script that uses layer.visible to toggle layers on/off before exporting each page using ExportToPDF. PDFDocument can then be used to append the pages into a single PDF file. The technique is described in ...


2

Yes, and the way I would try to do this is: Copy/paste your blocks layer (which I think is also your Index layer) in the Table of Contents Use a Page Definition Query on the new layer so that only the block which is the name of the page is used to draw it Turn off (but do not remove) the original block layer (which you are using for purposes other than ...


1

For once, I'll answer my own question! It's not the exact answer to why the above doesn't work, but is a work around: arcpy.env.overwriteOutput = 1 mxd = arcpy.mapping.MapDocument("C:\\temp\\Graffiti_DM4.mxd") df = arcpy.mapping.ListDataFrames(mxd, "*")[0] newlayer="C:\\temp\\newlayer.lyr" newpointout="C:\\temp\\newpointout.shp" ...



Only top voted, non community-wiki answers of a minimum length are eligible