|
POST
|
Here is a copy of the model I am using, is there a setting stored inside this? https://dl.dropboxusercontent.com/u/32195871/Work%20Only/GeonetExport.zip
... View more
06-28-2016
05:26 PM
|
2
|
6
|
4825
|
|
POST
|
Hey Jayanta, thanks for the comment, it seems I already have this option ticked on.... These are the current settings I have in ArcMap: These are the current settings I have in ArcCatalog (this is where I open the Model Builder model from):
... View more
06-28-2016
05:17 PM
|
6
|
7
|
4825
|
|
POST
|
Hi, I have a model I created in Model Builder that simply runs several instances of the "Feature Class to Shapefile" tool. If I run this tool over and over again, it keeps creating new files in the output directory, incrementing the filename by a single digit each time. For example, if I run the tool three times I will end up with: Water_mains.shp Water_mains_1.shp Water_mains_2.shp Is there a way I can tell the model builder to overwrite these files instead of creating a unique file name? I reference these files in several maps, and I thought I was updating the source data for these maps, but each time I run it it creates a new filename so the data source needs to be updated accordingly (not ideal). Do you know how to force the model to overwrite existing data?
... View more
06-27-2016
08:20 PM
|
5
|
15
|
10865
|
|
POST
|
Works perfectly, I can use this code to create a simple list, exactly what I require! Thanks
... View more
06-26-2016
11:40 PM
|
0
|
0
|
801
|
|
POST
|
Hi, I am wondering if anyone knows of a piece of python code that will return a list of all Map Service Connections??? I have several connections, I would like the script to find the connection name, and then use this info to perform further tasks. Anyone done this? Cheers
... View more
06-26-2016
04:20 PM
|
0
|
2
|
2984
|
|
POST
|
Thanks Dan, I am running the tool now to see if it does what I am looking for! Cheers!
... View more
06-14-2016
06:04 PM
|
0
|
0
|
816
|
|
POST
|
Hey, I know this is going to be classified as GIS101, but I cannot for the life of me find a tool that will do what I require. I have a point feature class, it has about 1 million points, it represents a flood area, and what I need to create is a polygon which represents the extent of the area affected by this flood. So basically I need it to 'shrink wrap' my points. See below my technical sample drawing, I am trying to create the extent (red) polygon, around the existing points (black dots). What tool do I need???
... View more
06-14-2016
03:40 PM
|
0
|
3
|
3227
|
|
POST
|
Works beautifully, thanks for your assistance everyone
... View more
05-25-2016
03:22 PM
|
0
|
0
|
2075
|
|
POST
|
Hi All, I am trying my hand at using python to modify my labeling to suit. I have a column which contains peoples names, this column can contain between one and four names, all separated by a comma. See sample data here: Currently when I label based on this column it looks pretty boring, what I would like is to split the names onto a new line, based on the comma. So essentially I want to find the comma, and insert a new line with the next name on it. This is what it currently looks like, and the code: def FindLabel ([BENVA.%Burial_Data.NAM], [SDE_SPATIAL.GISADMIN.waugh_road_graves.GIS_Authority_Link] ):
na = [BENVA.%Burial_Data.NAM]
if na is None:
na = [SDE_SPATIAL.GISADMIN.waugh_road_graves.GIS_Authority_Link]
return na Does anyone have any sample code they could provide that would achieve this? Alternatively give me some guidance as to how one would go about this??? Thanks very much everyone.
... View more
05-24-2016
11:32 PM
|
0
|
5
|
4794
|
|
POST
|
perfect thanks! Great info on that site you linked for me. I now have a greater understanding as to what is happening! Cheers
... View more
05-18-2016
04:21 PM
|
0
|
0
|
2316
|
|
POST
|
Hi, I am just perusing my ArcGIS Server Manager Logs and I noticed a reoccurring log and I am unable to find much info on what it is telling me, nor how to fix this problem. Has anyone got any insight on what this is saying, and how do I stop this error from reoccurring dozens of times a day?? Thanks Error: Total number of coded domain values in this service exceeds the MaxDomainCodeCount and will not be included in MapServerInfo
... View more
05-18-2016
03:56 PM
|
0
|
2
|
6749
|
|
POST
|
Hi All, I have been doing some googling and am yet to find what I am looking for, basically because I dont know what im trying to do is called. I have a data driven map set, it is based on a polygon feature class called 'Data Driven Grid'. This grid has an attribute called 'classification' (AKA the location), and I have a py script which iterates through these locations and exports a single PDF... here is my current py: import os, arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
#Create final output PDF file
finalFile = r"C:\temp\BensMap.pdf"
if os.path.isfile(finalFile):
os.remove(finalFile)
print 'Removed existing output file'
mxd.dataDrivenPages.exportToPDF(finalFile, page_range_type="ALL", image_compression="DEFLATE")
del mxd
print 'complete' So I have a second point feature class (called 'sampling sites') displaying points that have a matching location, so these are basically 'data driven'. This works well, it only shows the points that match the page that is being plotted. What I would like to so is similar to a report, I want a table to be placed on my page, and the table shows the sample site number, and associated attributes. I am happy for the table to be fixed number of rows, my data only varies from 7-10 attributes each time, so a few blank rows won't hurt. Can anyone tell me if there is a name for what I am trying to do? I have no idea if this is possible as i am not trying to return attributes from my data driven page feature class, but another feature class all together. Cheers
... View more
05-02-2016
06:51 PM
|
0
|
2
|
2064
|
|
POST
|
Neil seems to have a much 'lighter' answer, but this is the code I used to produce the result I was looking for. Thanks for your reply Neil, much better answer than mine. import os, arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
#Create final output PDF file
finalFile = r"C:\temp\BensMap.pdf"
if os.path.isfile(finalFile)
os.remove(finalFile)
print 'Removed existing output file'
finalPDF = arcpy.mapping.PDFDocumentCreate(finalFile)
for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = pageNum
currentPage = str(mxd.dataDrivenPages.currentPageID)
pageCount = str(mxd.dataDrivenPages.pageCount)
print 'Exporting page %s of %s' % (currentPage, pageCount)
tmpPDF = r"C:\temp\MAP_" + str(pageNum) + ".pdf"
arcpy.mapping.ExportToPDF(mxd, tmpPDF)
print tmpPDF
finalPDF.appendPages(tmpPDF)
del tmpPDF
del mxd
... View more
05-02-2016
12:01 AM
|
0
|
0
|
1537
|
|
POST
|
Thanks Neil Ayres, it seems I was looking for a harder way of doing things than necessary...
... View more
05-01-2016
11:57 PM
|
0
|
0
|
1537
|
|
POST
|
Hi All, I am currently using this code to export my data driven pages to PDF, but the export seems to only export individual pages, I would like a singular output PDF with several pages instead. Does anyone know if this is possible with this tool, or do I need to use an external module to achieve this one?? mxd = arcpy.mapping.MapDocument("CURRENT")
for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = pageNum
arcpy.mapping.ExportToPDF(mxd, r"C:\temp\MAP_" + str(pageNum) + ".pdf")
del mxd Here is the help file for the ExportToPDF tool Cheers
... View more
05-01-2016
11:13 PM
|
0
|
4
|
3589
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-17-2018 08:51 PM | |
| 1 | 09-23-2018 07:38 PM | |
| 1 | 04-08-2019 10:05 PM | |
| 1 | 02-03-2019 03:06 PM | |
| 1 | 12-20-2019 07:16 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|