|
POST
|
For reference, the incident ID is: Esri Incident #1234321 (Thomas J) mapDoc.save() fails after mapDoc.replaceWorkspaces() in MXD with ArcGIS Image Service
... View more
01-24-2014
06:56 AM
|
0
|
0
|
4969
|
|
POST
|
I'd be happy to but, I have to confess, I'm not sure how to do that. Can you point me in the right direction, please? Thanks...
... View more
01-17-2014
12:37 PM
|
0
|
0
|
4969
|
|
POST
|
Our organization is migrating from SDE 9.3.1 to SDE 10.1 which entails new SDE connection files. I've developed a script tool that walks a directory tree looking for MXD files that have an old SDE connection, and then replaces the old SDE connection(s) with the new SDE connection(s) using the .replaceWorkspaces() method. The script works totally as expeted except for MXDs that contain an ArcGIS Image Service raster layer. In these situations, the SDE connection to the vector data is successfully replaced but, somehow, that process strips all of the properties from the Image Service layers! In the attached image below, notice that the SDE connection has been updated to gdb01a as it should, but the Image Service layers are stripped of their source properties. That causes the MXD to be un-savable when I apply the .save() method. This seems quite bizarre to me. Any explanations or remedies would be appreciated. Thank you... [ATTACH=CONFIG]30573[/ATTACH]
... View more
01-16-2014
07:48 AM
|
0
|
12
|
6494
|
|
POST
|
See this link for a Python script tool and syntax to calculate mean aspect for polygons. http://forums.arcgis.com/threads/53420-Calculate-mean-aspect-for-polygons
... View more
12-07-2013
06:33 AM
|
0
|
0
|
1245
|
|
POST
|
The attached zip file contains a Python script tool that calculates zonal mean aspect azimuth, and mean aspect class. The syntax for the fundamental calculation is: math.fmod(360 + (math.atan2(!MeanSin!, !MeanCos!)) * (180 / math.pi), 360)
... View more
12-07-2013
06:23 AM
|
3
|
4
|
9298
|
|
POST
|
In this case, param[0] is the input raster, param[1] is the input raster's RECLASS field (the field has a dependency on the input raster), and param[2] is the REMAP control itself (has a dependency on both the input raster and on the reclass field). Having said that, I'm still at 10.0, so have not had an opportunity to validate that this (or something like it) works in 10.1. ** For some reason, the indents aren't showing up in the ToolValidator code below... def initializeParameters(self): """Refine the properties of a tool's parameters. This method is called when the tool is opened.""" self.params[1].value = "VALUE" self.params[1].enabled = False self.params[1].parameterDependencies = [0] self.params[2].parameterDependencies = [0, 1] return
... View more
05-08-2013
06:22 AM
|
0
|
0
|
2475
|
|
POST
|
A colleague of mine reports that at 10.1, adding the two parameter dependencies to the remap element under initializeParameters in ToolValidator (instead of updateParameters) was all that was needed to activate the �??Classify�?? and �??Unique�?? buttons and populate the remap table listing. So, there does appear to be hope on the horizon...
... View more
10-29-2012
02:08 PM
|
0
|
0
|
6413
|
|
POST
|
OK, another rookie mistake on my part. I'd been using the datasetType property without success, but the dataType property of os.path.dirname(feature class) distinguishes between a Folder, a Geodatabase, and a Feature dataset...which is what I needed. Thanks to Wayne and Jake for nudging my pea-brain in the right direction...
... View more
10-25-2012
09:47 AM
|
0
|
0
|
1070
|
|
POST
|
How can I discover if the os.path.dirname of a feature class is a feature dataset or a geodatabase? I need to generate a stand-alone frequency table of values from the feature class, but I can only create that stand-alone table at the geodatabase level, not at the feature dataset level. Thanks...
... View more
10-24-2012
08:19 PM
|
0
|
3
|
1324
|
|
POST
|
RafealR, did you ever resolve how to populate the remap value table automatically?
... View more
09-15-2012
09:03 AM
|
0
|
0
|
6413
|
|
POST
|
Another option is to create a topology rule for "must not have dangles", and then mass TRIM and EXTEND from the Topology Error Inspector using a reasonable search radius. TRIM and EXTEND will insure original directionality is preserved. Planarize lines if an actual intersection (split line) is required.
... View more
08-22-2011
12:45 PM
|
0
|
0
|
660
|
|
POST
|
No, I was unable to work it out. The two forms, one running against a shapefile and the other running against an AXF file, produce different results even though their code is identical. It is mysterious and disappointing...
... View more
02-08-2011
04:31 AM
|
0
|
0
|
3032
|
|
POST
|
Quite right. The IDENTITY tool would do the trick, and quite rapidly. Thanks. On a more rhetorical level, however, I'm curious why my script has run successfully on 6 or 7 occassions in 9.2 (on the same PC, using the same dataset) but fails in 9.3.1.
... View more
09-20-2010
08:28 AM
|
0
|
0
|
859
|
|
POST
|
A Python script cursors through a set of 6,743 measured routes and uses SelectLayerByLocation with the WITHIN argument to select the route's underlying arcs. The script begins normally and produces the desired results, but it eventually wrecks, and never at the same record. In several trial runs, it has successfully processsed anywhere between 582 records on the low end and 1,842 records on the high end. Script coding appears valid, as desired results are consistently produced. I don't think it is a data problem because the script never wrecks in the same place, or near to the same place. In my view, that just leaves a breakdown in processing. Any suggestions or insights would be appreciated.
... View more
09-17-2010
09:05 AM
|
0
|
2
|
967
|
|
POST
|
Whenever I upgrade, I copy my data folders to an SD card and then reset the device back to factory defaults...essentially re-imaging the device back to its original factory state. Yes, it takes about 15 - 20 minutes to reload my device applications, but I'm always insured of a clean install.
... View more
07-28-2010
07:13 PM
|
0
|
0
|
1016
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 09-09-2023 09:43 PM | |
| 1 | 12-18-2021 09:16 AM | |
| 1 | 12-15-2021 07:14 PM | |
| 1 | 05-14-2021 07:12 AM | |
| 1 | 03-13-2021 04:11 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-06-2024
07:23 PM
|