|
POST
|
Neal, Excellent and thank you for sharing your solution! I would never have thought to use the parse tool. Definitely going to use that trick in future models. Duncan
... View more
11-18-2013
12:05 AM
|
0
|
0
|
4918
|
|
POST
|
Does your dataset have larger holes or are they always .5x.5? Do you want to remove ALL holes or just the small ones?
... View more
11-15-2013
04:15 AM
|
0
|
0
|
3936
|
|
POST
|
Xander, Thanks for converting the Avenue to Python!
... View more
11-14-2013
06:51 AM
|
0
|
0
|
4427
|
|
POST
|
Having set the NoData value have you tried to save the raster first using ISaveAs to commit the change? The help file says These modifications only affect the in-memory raster representation and in no way change any of the raster dataset. You can persist the modifications to a new raster datast using ISaveAs::SaveAs or IRasterBandCollection::SaveAs. Duncan
... View more
11-14-2013
05:51 AM
|
0
|
0
|
901
|
|
POST
|
Here is some VBA code to show how you would call a model in a toolbox ' Create workspacefactory
Dim pToolboxWorkspaceFactory As IWorkspaceFactory
Set pToolboxWorkspaceFactory = New esriGeoprocessing.ToolboxWorkspaceFactory
'Open a toolbox workspace - you need to change the path
Dim pToolboxWorkspace As IToolboxWorkspace
Set pToolboxWorkspace = pToolboxWorkspaceFactory.OpenFromFile("c:\temp", 0)
' Connect to tool - you need to change the toolbox name and model name
Dim pGPToolBox As IGPToolbox
Set pGPToolBox = pToolboxWorkspace.OpenToolbox("myToolbox.tbx")
Dim pGPTool As IGPTool
Set pGPTool = pGPToolBox.OpenTool("mdExplodeToSingleRoutes")
' Run tool
Dim pGPToolCommandHelper As IGPToolCommandHelper
Set pGPToolCommandHelper = New GPToolCommandHelper
pGPToolCommandHelper.SetTool pGPTool
pGPToolCommandHelper.Invoke Nothing
' Destroy objects
Set pToolboxWorkspaceFactory = Nothing
Set pToolboxWorkspace = Nothing
Set pGPToolBox = Nothing
Set pGPTool = Nothing
Set pGPToolCommandHelper = Nothing
... View more
11-12-2013
10:54 AM
|
0
|
0
|
1049
|
|
POST
|
Don't know if this will help but have a look at IGPUtilities.RemoveInternalLayer Method?
... View more
11-12-2013
10:41 AM
|
0
|
0
|
918
|
|
POST
|
This can be done simply by running the spatial join tool and making sure your join operation is ONE to MANY. No ArcObjects required what so ever.
... View more
11-12-2013
05:23 AM
|
0
|
0
|
504
|
|
POST
|
I've not tried this, so it may not work as you intend? Why not listen out to the IEditEvents.OnSelectionChanged Event? If the selection exceeds your criteria you set a global boolean to TRUE so when the user attempts to delete the features your IEditEvents.OnDeleteFeature Event tests the boolean? If TRUE then follow some other logic? Duncan
... View more
11-07-2013
04:45 AM
|
0
|
0
|
1097
|
|
POST
|
Is there a specific reason why you are compiling under the .Net Framework 4? If I was developing simple tools I would do it under the 3.5 Framework. Have a look at this page if you want to develop in .Net Framework 4.
... View more
11-07-2013
04:33 AM
|
0
|
0
|
1773
|
|
POST
|
If the error is occurring on the line: lbox_selectedFeature.Items.Add("OID:" + f.OID); Then it may be a type conversion error as OID will return an Integer. SO in VB I would do something like: lbox_selectedFeature.Items.Add("OID:" + f.OID.ToString())
... View more
11-04-2013
12:36 PM
|
0
|
0
|
1112
|
|
POST
|
If you found a solution you should mark you post as solved to tell others there was a solution.
... View more
11-01-2013
06:53 AM
|
0
|
0
|
612
|
|
POST
|
Raster Gurus, My colleague converted a polygon dataset (buildings) into a raster dataset where every 50m pixel that is "touched" by a polygon is given a 1 (green) and un-touching is a 0(gray); see the figure below. [ATTACH=CONFIG]28754[/ATTACH] This was achieved using GDAL and the ALL_TOUCHED parameter turned on. How can this be achieved in ArcMap? If I use Polygon to Raster tool and regardless of the cell Assignment parameter I cannot achieve this affect. I tried converting my polygons to polylines and then using the polyline to raster tool but large polygons greater than 50m end up creating "donuts" as shown below: [ATTACH=CONFIG]28755[/ATTACH] Is ArcMap capable of creating a raster where every cell is assigned a value when it intersects or touched by a polygon? Duncan
... View more
10-31-2013
09:09 AM
|
0
|
0
|
2522
|
|
POST
|
Unless I'm missing the point, calling the Summary Statistics tool will do this in one line of code? arcpy.Statistics_analysis("Export_Output","in_memory/x",[["ID","COUNT"]],"ID") This creates a table called X in the in_memory workspace and returns a count on a field called ID.
... View more
10-29-2013
09:28 AM
|
0
|
0
|
2969
|
|
POST
|
Neal, I know exactly the problem you are describing and have never been able to find a satisfactory solution to it, other than exposing the field name you are doing the calculation on and the expression as model parameters. This way you can change then accordingly for each run of your model. This means you run your model as a normal tool rather than going into model builder to run it. Duncan
... View more
10-29-2013
09:08 AM
|
0
|
0
|
4918
|
|
POST
|
I have never tried to dock toolbar bars in a specific order so this may be a red herring but the ICommandBar.Dock method apparently allows you to specify an optional commandbar "to be used as a location reference". Just an idea?
... View more
10-28-2013
03:10 PM
|
0
|
0
|
577
|
| 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 |
4 weeks ago
|