|
POST
|
A simple model should suffice as shown below: Use the Iterate Workspace to return File GeoDatabases and tick on recursive if you want drill down into the sub-folders. You would then use inline substitution to ensure a unique file name for the Output file. If you want to do this in just python then look at this function here.
... View more
11-17-2014
11:09 AM
|
0
|
1
|
3440
|
|
POST
|
Have you confirmed that theWorkspace is not Nothing?
... View more
11-17-2014
10:56 AM
|
0
|
1
|
1619
|
|
POST
|
Hi Samuel, My solution was to give up! I was surprised no one from ESRI offered up an answer even if it was "you are an idiot you are doing it the wrong way" or "no can't be done" I abandon the Textbox and created a dockable window which was something that I could display a textbox on and hook into. So it was a radical change from the previous interface. I think the AddIn framework is great but I came to the conclusion (which may be completely wrong) that you can't add controls that are not part of the AddIn framework as there seemed to no mechanism to declare them in the Config file. Duncan
... View more
11-17-2014
02:49 AM
|
0
|
0
|
984
|
|
POST
|
Can you upload the full code, its difficult to answer this with just 1 line of code which is clearly ok if it ran for 100 times?
... View more
11-07-2014
06:35 AM
|
0
|
0
|
2472
|
|
POST
|
I would image the problem is that in your script tool you are not providing enough information for it to find the layer. The ApplySymbologyFromLayer tool takes a FeatureLayer as input (it says that in the help) but just giving it a name (which you did) could be interpreted as a FeatureClass, an object that does not support symbology. So by using the ListLayers approach you are actually providing the tool with a FeatureLayer object.
... View more
11-07-2014
05:18 AM
|
1
|
0
|
1637
|
|
POST
|
The following VBA code shows you how to get a handle on a raster layers renderer:
Public Sub test()
' Get document
Dim pmxd As IMxDocument
Set pmxd = ThisDocument
' Get map
Dim pmap As IMap
Set pmap = pmxd.FocusMap
' Get first layer (assumed to be raster)
Dim pLayer As ILayer
Set pLayer = pmap.Layer(0)
' QI into rasterlayer
Dim pRasterLayer As IRasterLayer
Set pRasterLayer = pLayer
' Get renderer
Dim pRasterRenderer As IRasterRenderer
Set pRasterRenderer = pRasterLayer.Renderer
' Test renderer type and report
If TypeOf pRasterRenderer Is IRasterStretchColorRampRenderer Then
Debug.Print "stretchy!"
Dim pRasterStretchColorRampRenderer As IRasterStretchColorRampRenderer
Set pRasterStretchColorRampRenderer = pRasterRenderer
Debug.Print pRasterStretchColorRampRenderer.LabelHigh
End If
End Sub
... View more
11-07-2014
02:33 AM
|
0
|
0
|
1149
|
|
POST
|
You've not given us much information, so I will make an assumption that because you mention "routes" you are referring to linear referencing? You would be able to snap you bus stops using this tool.
... View more
10-31-2014
04:27 PM
|
0
|
0
|
2938
|
|
POST
|
I suggest some code on the GIS SE website here. There is also a link back to a blog page on Geonet showing an example of using numpy which you could explore as an alternative approach for reordering tables.
... View more
10-31-2014
04:19 AM
|
3
|
1
|
2939
|
|
POST
|
I think the problem is that you are not saving your changes. So you create your mseg interface point it to the geometry and at the end of the code you interpolate and calculate non simple Ms. But you do not write it back to the feature. In VB I would do something like:
dim pPolyline as IPolyline
pPolyline = inFeatures.Shape
dim mseg as IMSegmentation
mseg = pPolyline
:
:
mseg.SetAndInterpolateMsBetween(0, t_meas)
mseg.CalculateNonSimpleMs()
:
inFeature.Shape = pPolyline
' Not sure but you may need to call store at this point
inFeature.Store()
Duncan
... View more
10-30-2014
07:31 AM
|
0
|
1
|
1553
|
|
POST
|
I'm sure I have read in the T&C of the software that it states that subtle changes are made to any tool so as to make unnecessary work for you... It's the standard contractual agreement we all willingly entered into.
... View more
10-29-2014
04:51 AM
|
0
|
0
|
5302
|
|
POST
|
You do not state which version of ArcGIS you are using (you should always do that). If you are using 10.2 then you can use the Add Geometry Attribute tool to at add the centroid XY coordinates. As for the radius you could add a field and calculate it using: radius = sqrt(Area/pi)
... View more
10-29-2014
04:44 AM
|
0
|
0
|
599
|
|
POST
|
I've just opened a 9.3 mxd in ArcGIS 10.2.2 and was able to copy and paste into a blank MXD, so not sure what your problem is?
... View more
10-29-2014
04:18 AM
|
0
|
0
|
644
|
|
BLOG
|
Dan, If you are rebuilding these tools can you make them capable of sending the output to an IN_MEMORY workspace. I find this an extremely useful ability of a geoprocessing tool as I often test output to make sure I'm doing things right or its what I was expecting. Sending output to a place like IN_MEMORY which is destroyed when ArcMap closes is great as then I do not have to worry about cleaning up after myself. Duncan
... View more
10-28-2014
10:10 AM
|
0
|
0
|
289
|
|
POST
|
What is the biggest number you are using? Data type short covers a range of -32,768 to 32,767 are you exceed this?
... View more
10-28-2014
09:49 AM
|
0
|
1
|
2354
|
|
POST
|
I would probably search with Google using a term like "GIS data Cleaning" or some equivalent. So are you saying that you would be generating 600 cropped images per month which you want someone else to geo-reference? How many months were you thinking? Who ever took on this work would need to have base maps to reference against. What country do you work in, I cannot tell as you have not filled in any of your geonet profile...
... View more
10-27-2014
10:23 AM
|
0
|
1
|
1400
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-03-2026 07:31 AM | |
| 3 | 06-29-2026 05:17 AM | |
| 1 | 02-15-2023 05:45 AM | |
| 1 | 06-16-2026 02:37 AM | |
| 1 | 06-15-2026 08:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
12 hours ago
|