|
POST
|
Your question doesn't appear to have anything to do with ArcGIS. This isn't a general python forum. I suggest you post your question to StackOverflow.
... View more
02-14-2014
02:14 PM
|
0
|
0
|
727
|
|
POST
|
See the InsertCursor help for how to use an insertcursor. You cannot specify a field list with an insertcursor. You're confusing an arcpy.InsertCursor with arcpy.da.InsertCursor - this is the correct help topic.
... View more
02-13-2014
03:01 PM
|
0
|
0
|
3272
|
|
POST
|
I would recommend looking at the python CUPS module, aka pycups. CUPS is Linux/UNIX only. I don't know if there's a(n easy) way to control the print output on Windows.
... View more
02-12-2014
09:33 AM
|
0
|
0
|
27871
|
|
POST
|
GeoTiff is a file based raster type and you are trying to save it to a File GeoDatabase (FGDB). If you want a GeoTiff, set your output workspace to a directory not an FGDB. If you want a geodatabase raster, leave your output workspace as is and remove the '.tif' from the raster name.
... View more
02-10-2014
10:27 PM
|
1
|
0
|
2396
|
|
POST
|
I would use CellStatistics +1 I always forget this tool...
... View more
02-03-2014
01:09 PM
|
0
|
0
|
6991
|
|
POST
|
I searched high and low and could not find a Python wrapper for it, so I had a fresh cup of Joe and decided to dive right in. Are you aware of the GDAL/OGR python bindings? They have supported the FGDB API for about as long as the API has been available.
... View more
02-02-2014
01:04 PM
|
0
|
0
|
989
|
|
POST
|
The fieldInfo object is a property of a Describe object. Its class definition is in the arcpy package, but you don't use it from there (how does arcpy know what layer you are referring to?). See the 1st example in the help. Try: arcpy.Describe(layer).fieldInfo.findFieldByName(!gesamt!))
... View more
02-02-2014
10:44 AM
|
0
|
0
|
614
|
|
POST
|
Table to Table (Conversion) is available at all license levels, so there's probably something else going on. Definitely post your script and how you're trying to run it as a scheduled task.
... View more
01-28-2014
02:49 PM
|
0
|
0
|
691
|
|
POST
|
Which tool? Have you checked the help to see if the tool is available with an Advanced license only?
... View more
01-24-2014
02:55 PM
|
0
|
0
|
691
|
|
POST
|
Write it to %APPDATA%\your_adddin_name\your_config_file.xml. This way, it gets written to a users profile and will not get overwritten by later users (who will get their own config file). e.g. import os
config=os.path.join(os.environ['APPDATA'],'your_addin_name', 'your_config_file.xml')
... View more
01-22-2014
05:20 PM
|
0
|
0
|
559
|
|
POST
|
If you have the ArcGIS GeoStatistical Analyst extension, have a look at the diffusion and kernel interpolation with barriers tools. Otherwise, perhaps try the spline interpolation with barriers tool (requires ArcGIS Spatial Analyst extension). Once you have interpolated a surface (raster), you can create contours with the contour tool. Edit: Do you have coastline data already? What format are your samples in?
... View more
01-22-2014
01:45 PM
|
0
|
0
|
611
|
|
POST
|
well the indentation is already preserved when i write the syntax. The indentation is not preserved when you submit your post. Compare the code in your original post with the code below: Original: import arcpy.mapping as mapping, os path = r"C:" f = open('filename_here.txt','w') for root,dirs,files in os.walk(path): for filename in files: basename, extension = os.path.splitext(filename) if extension == ".mxd": fullPath = os.path.join(path,filename) mxd = mapping.MapDocument(fullPath) f.write("MXD: " + filename + "\n") brknList = mapping.ListBrokenDataSources(mxd) for brknItem in brknList: f.write("\t" + brknItem.name + "\n") f.close() [noparse]With [/noparse] tags: import arcpy.mapping as mapping, os
path = r"C:"
f = open('filename_here.txt','w')
for root,dirs,files in os.walk(path):
for filename in files:
basename, extension = os.path.splitext(filename)
if extension == ".mxd":
fullPath = os.path.join(path,filename)
mxd = mapping.MapDocument(fullPath)
f.write("MXD: " + filename + "\n")
brknList = mapping.ListBrokenDataSources(mxd)
for brknItem in brknList:
f.write("\t" + brknItem.name + "\n")
f.close()
... View more
01-22-2014
11:44 AM
|
0
|
0
|
684
|
|
POST
|
If you just want to give them a static image, in ArcMap -> File -> Export Map... and bump the resolution up from 72dpi to something higher e.g. 300dpi. If you want to give them a raster at full resolution to use in a GIS etc. use the CopyRaster tool (in Environment Settings-Processing Extent set the extent to "same as display" if you're zoomed in to the right area to avoid copying the entire ecw).
... View more
01-20-2014
07:02 PM
|
1
|
0
|
3344
|
|
POST
|
This is a direct link to the post mentioned in my previous answer (can't edit for some reason).
... View more
01-19-2014
12:21 PM
|
0
|
0
|
981
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-24-2022 03:08 PM | |
| 1 | 07-30-2025 03:00 PM | |
| 1 | 06-10-2025 08:06 PM | |
| 5 | 05-20-2025 07:56 PM | |
| 1 | 05-04-2025 10:34 PM |