|
POST
|
I would make sure that your file path to your datasets have no spaces in them. That can sometimes throw off Geoprocessing tools. What type of output raster are you creating(grid, tif, etc.?)
... View more
08-05-2015
11:47 AM
|
0
|
0
|
2206
|
|
POST
|
If you tag people in a post, then they should get an alert they have been tagged in content, since you are looking for Melita Kennedy on this particular question.
... View more
08-05-2015
09:32 AM
|
0
|
0
|
2712
|
|
POST
|
further testing, you don't need to make a new field. I replaced the value in the label expression then added it to the expression I wanted returned and it worked perfectly. def FindLabel ([Test]):
label = [Test].replace("&" , "&")
return "<BOL>" + label + "</BOL>" This worked for a text field that had an ampersand on it. John & Jim displayed correctly on a point with this expression. Also I explored python string formatting and nothing worked on that front.
... View more
08-05-2015
08:18 AM
|
2
|
0
|
3389
|
|
POST
|
Instead of replacing with and, you can replace with it with "&", which is read by the text formatter as an ampersand. I made a duplicate field in my attribute table and replaced my "&" with "&" and it labelled properly off the copy field. ArcGIS Help (10.2, 10.2.1, and 10.2.2)
... View more
08-05-2015
07:50 AM
|
1
|
2
|
3389
|
|
POST
|
You could create a map and publish it to ArcGIS Online(AGOL). This would effectively be a web version of the map you create in ArcMap and could be accessible by anyone who has internet access. Publish features—ArcGIS Online Help | ArcGIS
... View more
08-04-2015
01:19 PM
|
0
|
2
|
2566
|
|
POST
|
Using arcpy.da.Walk, you never have to set the workspace environment setting, just give a string path for the root directory you want checked. If you use that with the os module, you can join together the filepath and filename with os.path.join. Example from the help: ArcGIS Help (10.2, 10.2.1, and 10.2.2) Ex. Use the Walk function to catalog polygon feature classes. import arcpy
import os
workspace = "c:/data"
feature_classes = []
walk = arcpy.da.Walk(workspace, datatype="FeatureClass", type="Polygon")
for dirpath, dirnames, filenames in walk:
for filename in filenames:
feature_classes.append(os.path.join(dirpath, filename)) Of course you could leave it open so it check all file types.
... View more
08-04-2015
01:10 PM
|
2
|
2
|
4332
|
|
POST
|
Hi Andrew, There is actually a tool developed by ESRI staffers that will do this for you, produced by Jake Skinner. http://epro.maps.arcgis.com/home/item.html?id=16e5cc64178941839eca62837f168ec9
... View more
08-04-2015
12:21 PM
|
2
|
4
|
1970
|
|
POST
|
Under Legend Properties > Frame, you can control the Gap X and Gap Y between the border and the legend items. Positive values move the border outwards, negative values move the border inwards. Additionally, if you have a background for the legend, extend the gap there as well, so there is no gap in the background coloring.
... View more
08-04-2015
11:19 AM
|
2
|
1
|
8300
|
|
POST
|
Why not make an empty list and append the output from each ListFeatureClasses() to it? That way you don't lose access to them. Or you could use arcpy.da.Walk and go through multiple geodatabases. ArcGIS Help (10.2, 10.2.1, and 10.2.2)
... View more
08-04-2015
09:16 AM
|
1
|
0
|
4332
|
|
POST
|
Why not make another field called label, and set it equal to your existing field, then use a selection to find all values less than 10 sq ft and use field calculator to make them NULL just for the purposes of labelling? That way you only need one statement.
... View more
08-03-2015
12:11 PM
|
1
|
1
|
3400
|
|
POST
|
Do you have a list of broken links for all map documents, or just for one? You really need to handle the broken links on a map by map basis, since each one will have its own list of layers to be fixed. Here is a script I used, walks a workspace makes a list of maps, for each map lists layers and fixes the path designated, you should be able to modify it for replaceDataSource instead of findAndReplaceWorkspacePath #Importing Modules
import arcpy, os
from arcpy import env
#Put file path for the folder containing mxds, where I have my sample file path
env.workspace = r"S:\TS Projects\Basemaps"
#Workspaces I want replaced
find_workspace_path = r"C:\Users\iamurray\Desktop\Export_Output"
find_workspace_path2 = r"C:\Users\iamurray\Desktop\ED_Remainder"
find_workspace_path3 = r"C:\Users\iamurray\Desktop\ED_Remainder2"
find_workspace_path4 = r"C:\Users\iamurray\Desktop\Export_Output2"
replace_workspace_path = r"C:\Test\NewWorkspace"
#Recursively walking workspace
for root, dirs, files in os.walk(env.workspace):
for f in files:
if f.endswith(".mxd"):
mxd = arcpy.mapping.MapDocument(os.path.join(root , f))
Layers = arcpy.mapping.ListLayers(mxd)
for Layer in Layers:
if Layer.dataSource == find_workspace_path:
Layer.findAndReplaceWorkspacePath (find_workspace_path, replace_workspace_path)
elif Layer.dataSource == find_workspace_path2:
Layer.findAndReplaceWorkspacePath (find_workspace_path2, replace_workspace_path)
elif Layer.dataSource == find_workspace_path3:
Layer.findAndReplaceWorkspacePath (find_workspace_path3, replace_workspace_path)
elif Layer.dataSource == find_workspace_path4:
Layer.findAndReplaceWorkspacePath (find_workspace_path4, replace_workspace_path)
mxd.save()
del mxd
... View more
07-31-2015
03:51 PM
|
1
|
9
|
4012
|
|
POST
|
I have a script that creates ~2200 Map Documents and exports the same number of PDFs and it runs without a hitch. It takes a day plus to run but I've never had it fail like that(Though I have had others that have had this sort of problem). I would always recommend cleaning up memory after each export. The only way mine varies is I put a del mxd in after I exporting the map to JPEG in the for-loop.
... View more
07-31-2015
01:14 PM
|
1
|
1
|
3485
|
|
POST
|
Yes, but what should have been .914 meter contours(aka 3ft but the table was storing it as meters but as an integer via truncation) made it an elevation of 0 in the attribute table. So while some contours with a table elevation of 0 were truly 0 elevation, others were 3ft but were given a value of 0(due to the tool parameters when first ran). Once the correct precision was applied during the running of the tool, there were true decimal meter elevation values in the table which could then be turned into feet.
... View more
07-30-2015
12:29 PM
|
0
|
0
|
2076
|
|
POST
|
I'd take a full time GIS job first. I'll worry about the raise later.
... View more
07-30-2015
11:46 AM
|
0
|
0
|
2076
|
|
POST
|
I'm at my other GIS job today and do have 3D analyst. There is a parameter when you run the tool where you can control precision of the output Contour Field. That should fix the truncation issue that it is currently outputting
... View more
07-30-2015
10:23 AM
|
0
|
2
|
5831
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-22-2017 08:58 AM | |
| 1 | 10-05-2015 05:43 AM | |
| 1 | 05-08-2015 07:03 AM | |
| 1 | 10-20-2015 02:20 PM | |
| 1 | 10-05-2015 05:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|