POST
|
Are you binding to Desktop or Engine? Starting at the 10.0 release each product has it's own install directory and you must call bind for standalone applications. This will essentially tell the application what product directory to pull its ESRI resources from. The Catalog assembly is provided with Desktop only so if you are binding to Engine you would expect to get an error because the Engine product doesn't have the Catalog assembly.
... View more
08-30-2012
01:40 PM
|
0
|
0
|
556
|
POST
|
After you add the layer to the group you can call Update on the TOC.
... View more
08-30-2012
01:21 PM
|
0
|
0
|
317
|
POST
|
This issue has been logged with support as NIM082786. Please contact ESRI support to have your name added to the list of affected users.
... View more
08-08-2012
08:57 AM
|
0
|
0
|
683
|
POST
|
I'm sure you could go about this in many different ways. However, here are a couple of suggestions that may help. My simple test contains a dockable window named DockableWindow1 that contains a single child control named button1. It also contains a seperate button that's used to find the dockable window and access its child controls. For a dockable window AddIn: 1) In the implementation class of the dockable window (AddinImpl) expose a property public DockableWindow1 MyDockWin { get {return m_windowUI;} } 2) When accessing the dockable window from the separate button: string dockWinId = ThisAddIn.IDs.DockableWindow1;
IDockableWindow dockWin = getDockWin(dockWinId);
DockableWindow1.AddinImpl addiN = AddIn.FromID<DockableWindow1.AddinImpl>(dockWinId);
DockableWindow1 myDocWin = addiN.MyDockWin;
UserControl uc = (UserControl)myDocWin;
System.Windows.Forms.Button myChildControl = (System.Windows.Forms.Button)uc.Controls[0]; For a COM based dockable window (using the Dockable Window item template in a standard class library) 1) You could expose a separate property or leverage the UserData property of your dockable window: object IDockableWindowDef.UserData
{
get { return (object)this; }
} 2) When accessing the dockable window from the separate button: IDockableWindow COMDockWin = getDockWin("{10039c9d-ac61-4dbe-8bec-bba52b6f5fc0}");
UserControl COMuc = (UserControl)COMDockWin.UserData;
System.Windows.Forms.Button myCOMChildControl = (System.Windows.Forms.Button)COMuc.Controls[0]; Hope this helps!
... View more
08-07-2012
09:59 AM
|
0
|
0
|
908
|
POST
|
I don't believe you can rely on "10.0" or "10.1" being in the product directory name. I also doubt all users would have access to the registry to check the "RealVersion" key. I've not tested on a Java only machine but it looks like Java also has access to IArcGISVersion. If you know it's 10.0 or 10.1 you could check the version here.
... View more
06-20-2012
12:53 PM
|
0
|
0
|
161
|
POST
|
I've not really worked with raster catalogs much but from the documentation: "A raster catalog is a collection of raster datasets defined in a table format in which each record represents an individual raster dataset in the catalog." The GdbRasterCatalogLayer CoClass also implements serveral interfaces that will allow you to get access to the feature class or table, I used IFeatureLayer. Then got a IFeatureCursor to loop through the rows and get access to the IRasterValue. Here is some code for this: ILayer l = ArcMap.Document.FocusMap.get_Layer(0);
IFeatureClass fc = ((IFeatureLayer)l).FeatureClass;
IFeatureCursor fCur = fc.Search(null, false);
IFeature f = fCur.NextFeature();
IRasterValue2 rastVal = (IRasterValue2)f.get_Value(f.Fields.FindField("Raster"));
IRaster r = rastVal.Raster;
... View more
06-20-2012
12:04 PM
|
0
|
0
|
116
|
POST
|
Try invalidating the spatial index. Here is another doc that goes into more detail on working with indexes
... View more
06-20-2012
09:39 AM
|
0
|
0
|
249
|
POST
|
I'm not sure I follow the question. In general you can create a groupl layer and add with code similar to the following: IFeatureClass fc = getFeatureClass();
IFeatureLayer fl = new FeatureLayer(){ FeatureClass = fc, Name = fc.AliasName};
IGroupLayer gl = new GroupLayer();
gl.Add(fl);
axGlobeControl1.Globe.AddLayerType((ILayer)gl, esriGlobeLayerType.esriGlobeLayerTypeDraped, false);
... View more
06-20-2012
09:24 AM
|
0
|
0
|
158
|
POST
|
I don't understand exactly what you mean when you say a "panel with instruments". However, I think the use of a docakable window or a toolbar is what you are after. These could be created as standard COM componenets (as with the links above) or with Add-Ins. Regardless of the option you choose for how you would like to store your custom tools the code for interacting with the map display would be the same. However you do have variety of options depending upon you requirements. Here is a general help topic on working with the map display. Notice the sub-topics regarding draw point, line, rectangle, and polygon. You may also consider drawing graphic elements, a custom layer, or with the graphics tracker (not necessarily restricted to moving objects). The create a custom tool walk through may also be helpful for how to get started with this.
... View more
06-20-2012
08:57 AM
|
0
|
0
|
136
|
POST
|
See the TextFileWorkspaceFactory coclass. Small code example taken from the assemblies overview: // Create a text file workspace factory.
Type factoryType = Type.GetTypeFromProgID(
"esriDataSourcesOleDB.TextFileWorkspaceFactory");
IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)Activator.CreateInstance
(factoryType);
// Open a directory of CSV files using its path.
IWorkspace workspace = workspaceFactory.OpenFromFile(@"C:\Data\CSV", 0);
// Open a CSV file as a table.
IFeatureWorkspace featureWorkspace = (IFeatureWorkspace)workspace;
ITable table = featureWorkspace.OpenTable("Levee.csv");
... View more
06-20-2012
08:25 AM
|
0
|
0
|
439
|
POST
|
"ArcGIS Spatial Data Server is provided as a separate installation with all editions of ArcGIS for Server Enterprise. You can install ArcGIS Spatial Data Server for either IIS or the Java platform." SDS can be installed independently or with Server and could definately be a potential option for this. With SDS you can serve and edit native spatial types from a database via a feature service. Here is some documentation that discusses SDS in relation to Runtime: Spatial Data Server feature services
... View more
06-20-2012
07:23 AM
|
0
|
0
|
157
|
POST
|
Add-Ins targeting previous versions of ArcGIS will automatically load in newer releases, there is no need to rebuild or reinstall them. For example, ArcGIS 10.1 will automatically discover and load add-ins from the 10.0 well-known folder location(C:\Users\<username>\Documents\ArcGIS\AddIns\Desktop10.0). I'm not sure about the developer being able to prevent add-in clients from loading into a new release, I'll look into this.
... View more
02-07-2012
10:27 AM
|
0
|
0
|
169
|
POST
|
You could use ITable::Search or IFeatureClass::Search with a QueryFilter that has a defined where clause with the value you have entered for owner_ID; for example ("owner_ID = " & textBoxValue). Once the cursor is created you could loop through the returned rows and provide the returned value(s) to your UI. How to perform an attribute query Querying geodatabase tables
... View more
02-07-2012
10:15 AM
|
0
|
0
|
180
|
Title | Kudos | Posted |
---|---|---|
1 | 10-23-2018 03:25 PM | |
3 | 09-02-2010 05:56 AM | |
1 | 08-29-2014 07:33 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|