POST
|
Hi Jeff, I used this example as a template for what I wrote. The difference is I want to select from attributes rather than the page number. The work flow would go as follows: User The user selects a group of features from the data driven pages index. The Script 1. Create a temporary layer of the selection 2. From the temp layer, select [Orientation] = "LANDSCAPE" 3. Export Selected features to multiple PDF [page name] on the Landscape mxd 4. From the temp layer, select [Orientation] = "PORTRAIT" 5. Export Selected features to multiple PDF [page name] on the Portrait mxd 6. Delete temp layer. I'm not sure of this is a flawed idea as I'm not sure if mapping.datadrivenpages recognizances the temporary feature layer as the input source.
... View more
01-22-2013
06:45 AM
|
0
|
0
|
299
|
POST
|
Hi, Sorry for my absence. I went with rfairhur24 solution and it worked perfectly. With our new 64-bit PC's the process is very swift within modelbuilder. The in-memory option sounds very appealing not only for this model but other that I have built. I am currently looking to convert some of my tools into python scripts/tools to make them easier to share. David
... View more
01-20-2013
05:18 AM
|
0
|
0
|
991
|
POST
|
Dear GIS community, I am very much a Python N00b so am in need to your expertise. Scenario: I am using data driven pages to export to PDF. Each PDF focuses on a single polygon (in this case a postal zone) along with the relative background map. Of the 18000 polygons, 8000 would best suite a Portrait layout and 10000 would be landscape. The orientation preference is already the the data driven pages index layer. The two mxd's are identical except for their layout. My Aim: I am trying to write a python script that would allow me to export a selection of polygons (either by a simple selection or a definition query), using the correct layout. I would be in one of the mxd's when running this script. So far: Here is the script I have so far - # Import arcpy module import arcpy #Select Paramaters Select_Index=arcpy.GetParameterAsText(0) Select_Portrait_Layout = arcpy.GetParameterAsText(1) Select_landscape_Layout = arcpy.GetParamterASText(2) Export_Location = arcpy.GetParamaterAsText(3) # Local variables: Input_Feature = Select_Index Output_Layer = "DDP_Index_Temp" Select_Portrait_Layout = Select_Portrait_Layout Select_Index = Select_Index Select_landscape_Layout = Select_landscape_Layout Export_Location = Export_Location mxdport = arcpy.mapping.MapDocument(Select_Portrait_Layout) mxdland = arcpy.mapping.MapDocument(Select_landscape_Layout) # Process: Make Feature Layer arcpy.MakeFeatureLayer_management(Input_Feature, Output_Layer, "", "", "OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;NAME NAME VISIBLE NONE;AREA_CODE AREA_CODE VISIBLE NONE;DESCRIPTIO DESCRIPTIO VISIBLE NONE;FILE_NAME FILE_NAME VISIBLE NONE;NUMBER NUMBER VISIBLE NONE;NUMBER0 NUMBER0 VISIBLE NONE;POLYGON_ID POLYGON_ID VISIBLE NONE;UNIT_ID UNIT_ID VISIBLE NONE;CODE CODE VISIBLE NONE;HECTARES HECTARES VISIBLE NONE;AREA AREA VISIBLE NONE;TYPE_CODE TYPE_CODE VISIBLE NONE;DESCRIPT0 DESCRIPT0 VISIBLE NONE;TYPE_COD0 TYPE_COD0 VISIBLE NONE;DESCRIPT1 DESCRIPT1 VISIBLE NONE;Shape_Length Shape_Length VISIBLE NONE;Shape_Area Shape_Area VISIBLE NONE;Orientation Orientation VISIBLE NONE") # Process: Select Portrait arcpy.SelectLayerByAttribute_management(Output_Layer, "NEW_SELECTION", "\"Orientation\" = 'PORTRAIT'") #Process: Export Portrait mxdport.dataDrivenPages.exportToPDF(Export_Location,'SELECTED') # Process: Select Landscape arcpy.SelectLayerByAttribute_management(Output_Layer, "NEW_SELECTION", "\"Orientation\" = 'LANDSCAPE'") #Process: Export Landscape mxdland.dataDrivenPages.exportToPDF(Export_Location,'SELECTED') The issue: Simply put, it doesn't work. I keep getting the error the following error - [ATTACH=CONFIG]20891[/ATTACH] For this I am guessing its that i'm trying to export selected but from the wrong feature....?? help David McDermott
... View more
01-20-2013
03:19 AM
|
0
|
2
|
1126
|
POST
|
Note: I have determined that the statistic field(s) are not being maintained when the Dissovle Output is set as intermediate data. This has lead me to change the model so the dissovle is a precondition to the append and the append draws the input feature from geodatabase for temp data. The feature is then deleted once the append is complete. The model now work but it concenrns me. Why are Statistic Field(s) not maintained through intermideiate data in model builder?
... View more
06-26-2012
02:53 AM
|
0
|
0
|
378
|
POST
|
Hello to the ArcGIS community, I have been tasked by my company to transfer all our data from Geoconcept to ArcGIS. I have also been tasked with creating processes that will automate our work flows. Before starting I had no knowledge of modelbuilder but I have had to learn and quickly. One of the models I have created is designed to dissolve a series polygon features and then append them to another feature (all within a single file geodatabase). [ATTACH=CONFIG]15444[/ATTACH] Above is the window I get when running the tool. I want to dissolve the polygons features based on ROUND and summarize the SECTOR Field as FIRST. Then I want to append the new feature, I map the input field ROUND to NAME and SECTOR to SECTOR. The Problem is, the SECTOR input is set to SECTOR, not FIRST_SECTOR. This means the field is not appended. Could this because it has the same field name? How would I fix that? Any and all help is welcome. Many Thanks, David
... View more
06-22-2012
02:38 PM
|
0
|
3
|
1878
|
POST
|
jborgion - I certainly will when I get to work Monday Morning and I will inform you. rfairhur24 - Thanks for the input, you solution has given me some great ideas to streamline the process and improve accuracy. I will try it Monday morning.
... View more
03-04-2012
04:21 AM
|
0
|
0
|
3743
|
POST
|
Thales007 - Thank you for your input, unfortunately your solution would not work in this case. The information in each polygon (and therefore point) is amended on a weekly, sometimes daily basis. Converting it to raster would just mean more work. jborgion - I have used a spatial join in the past but it creates a new feature which is not ideal (see above). However, I have given it some thought, and while I am no expert, I feel using modelbuilder to create a workflow would help speed things up. Tell me what you think: Manually enter delivery information then - Dissolve feature based on delivery number > spatial join (SJ) polygons to points > Select points by location within dissolve feature (to speed things up) > join SJ feature to points based on postcode > field calculator data into relevant fields > Remove join > delete SJ feature. I'm not even sure model builder can do that but I would like to think it can.
... View more
03-03-2012
05:32 AM
|
0
|
0
|
4057
|
POST
|
Hi Jon, Thank you, this will be very useful. Can you tell me when will 10.1 be released?
... View more
03-02-2012
04:34 AM
|
0
|
0
|
447
|
POST
|
By large, I mean 3000 to 6000 hence why selecting each one is not an option. I am working with postcode centroids (points) inside postcode polygons. I create territories by entering delivery numbers into the polygons, then dissolving them based on that number. I then need to transfer the numbers to points inside the polygons. These points contain more detained address information which are then expored to a database. Thanks for the input though.
... View more
03-02-2012
04:15 AM
|
0
|
0
|
4057
|
POST
|
I have a large number of polygons. Each polygon has 1 or more points within. I would like to populate a field in the point data with data from a polygon field based on spatial location. I know I could use spatial join but I don't want a new feature, I just want to update the information in the point feature. P.S. I this would work the other way would it would be great.
... View more
03-02-2012
12:01 AM
|
0
|
17
|
16911
|
POST
|
Hi Jon, Thank you for your swift reply. Is there a tutorial or help section that would show me how to use key number labeling?
... View more
03-01-2012
11:45 PM
|
0
|
0
|
447
|
POST
|
When labeling small polygons, is there a way to place a number inside the polygon, and have the label in a legend? I would use leader lines but they can become messy.
... View more
03-01-2012
05:05 AM
|
0
|
5
|
596
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|