Tag Info

New answers tagged

0

I found a solution: the problem came from the way I created the IWorkspace object. The best way to do it in ArcObjects API for Java is: IWorkspaceFactory workspaceFactory = new FileGDBWorkspaceFactory(); IWorkspaceName workspaceName = workspaceFactory.create(parentDirectory, gdbName, null, 0); IName name = (IName)workspaceName; IWorkspace ...


0

The answer is no. Alternatively, we need to call a Java 7 or 8 executable JAR from the ArcObjects Java 6.


0

After a couple of days I figured out a solution...I got no idea if its optimal...but it does exactly what I want... //GLOBAL static IEnvelope _envpoint = new EnvelopeClass(); IImageServer3 _imageServer3 = (IImageServer3) GisHelper.GetImageServer("http://IP:6080/arcgis/services", "Folder/MosaicDataset", false); ...


2

Per Michael suggestions, Here is your solution. Copy and paste may not work, since I haven't tested the code IVariantArray parameters = new VarArrayClass(); parameters.Add(@"D:\mydb.gdb\myFeatuerClass1;D:\mydb.gdb\myFeatuerClass2"); parameters.Add("DWG_R2007"); parameters.Add(@"C:\temp\ExportCAD.DWG"); Geoprocessor gp = new Geoprocessor(); bool ...


0

You have mentioned , I want just to display it as a service. To display an image service, you should create an image layer and then you can add this layer to the map or show it in a list. Then the user can manually do analysis with Arcmap (Clip,Attribute or Spatial Query,...) For services without authentication: public static IImageServerLayer ...


1

If you ArcObjects version is 10, then the maximum version of Visual Studio that supports ArcObjects SDK, is Version 2010. Please refer to this page. Therefore, you should either downgrade your Visual Studio version to 2010 or upgrade your ArcGIS Version to version 10.2.x Reference The only supported version of .NET framework that works with ArcObject ...


1

Assuming your project is setup correctly, with all references added and compiles without errors. Using Visual Studio Express 2013, ArcGIS 10.3 and targeting .Net framework 3.5 Also ensure you add ArcObjects Library References to: DataSourcesGDB GeoDatabase Carto Public Sub New() On Error GoTo Trap Dim sPathFGDB As String Dim sFCName As String ...


0

Summary The IScreenDisplay interface has a ScaleContents property; set this to true Background As this question reveals, ESRI changed the default behaviour of the map control at ArcGIS 10. Less redrawing in data view In previous versions of ArcMap, if you changed the size of the ArcMap display while working in data view, either by resizing the ...


0

I know this is totally out of the scope of the question, but could be useful for those who want to reorder fields inside a table only once by hand. You can do the trick by importing the classes (or the whole geodatabase) into a personal geodatabase. Then open it with Access and reorder the fields (yeah, cool) and export it back to the original format. Hope ...


1

You can find and delete the Addins for ESRI at this location. C:\Users\yourusername\Documents\ArcGIS\AddIns. You also need to have your ESRI product closed when installing or reinstalling addins.


2

You must release the cursor after each usage. Just add these lines at the end of your codes: System.Runtime.InteropServices.Marshal.ReleaseComObject(featureCursor2); featureCursor2 = null; And add a reference to ESRI.ArcGIS.ADF.Local assembly.


0

This statement says you should use Server Classes instead of desktop classes for mapping purposes (mxd). For example instead of using IMap, use IMapServer which is designed to work with map services. In the next sentence of that quote it says: Instead, SOEs should use ArcObjects designed for working with map services, such as MapServer, ImageServer ...


3

The way I have done this in the past is to put the code to close the window in the close document event. So you need to set up a document event handler to catch the close document event: Private m_CloseDocument Private Sub DocumentEventsHandler(ByVal doc As IMxDocument) If doc is Nothing Then Return End If Dim documentEvents = ...


1

The IScreenDisplay interface has a ScaleContents property; set it to True and the old behavior is back. My.ArcMap.Document.ActiveView.ScreenDisplay.ScaleContents = True This works as a button click event in ArcMap, though I'll probably create an extension that the user can enable or disable. Hopefully it will also work in your application.


0

When the form is resized at run time, the PageLayoutControl and MapControl do not automatically resize. To resize the controls so that they always fill the extent of the form, anchor the controls to the form. If the PageLayoutControl or MapControl contains a lot of data, redrawing this data while the form is resized can be costly. To increase performance, ...


1

You can not customize this dialog. However you can simply create custom FeatureTempalate dialogs. To do so, download this sample project Feature Template Select Dialog A similar question has been already answered: Getting FeatureTemplate dialog form ArcObjects?


0

As fas as i know you cannot change the field names or types on export. You have 3 options: build an exporter that does this, create an empty shapefile with the fields you want first and load the exported features into it using a field map. Or export the feature class, then add fields and calculate the values into the new field, then delete the original ...


1

You should use IDataSourceHelperLayer Interface: Code Snippet: IDataSourceHelperLayer dsh = new DataSourceHelper() as IDataSourceHelperLayer; dsh.ReplaceName(pLayer, newIName, false); You can either use IDataSourceHelperLayer.FindAndReplaceWorkspaceNamePath method.


0

Esri's online help, there are examples of this problem, you can refer to this example. URL: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00490000002r000000


1

In ArcMap the MosaicDataset is a MosaicLayer and is essentially a CompositeLayer, and the actual raster image is one of its components. So find the raster in the MosaicLayer and treat it exactly as you did the raster in your first example... Dim pEnumLayer As IEnumLayer = My.ArcMap.Document.FocusMap.Layers(Nothing, True) pEnumLayer.Reset() Dim pLayer As ...


1

You'll need to install the ArcObjects SDK to work with your enterprise geodatabases. If you have ArcGIS, the SDK is available to you as a separate install. You can find it either on your installation DVD (if you have one) or for download from the customer service site. Please see the links below for more info. ...


1

Not sure why the question got "voted down". Thanks for the constructive input. Anywho, for those that understood the question, or are facing a similar challenge, here is/are the solution/s that was/were reached, tested, and proven to work. Summary It was the connection property parameter names. DB_CONNECTION_PROPERTIES vs. ...


1

So I ended up contacting Esri support about this... This can be worked around by wiring up the ItemDeleted event to the PageLayout. Then the ItemDeleted event will be fired whenever a map is deleted. This gets me what I want: Imports ESRI.ArcGIS.Carto Imports ESRI.ArcGIS.ArcMapUI Public Class test_FocusMapChanged Inherits ...


1

That works Farid Cher, but another helpful tip is to use the autoLoad property in the Config.esriaddinx: <Extensions> <Extension id="Microsoft_OnSave_Extension1" class="Extension1" productName="OnSaveExt" showInExtensionDialog="true" autoLoad="true" /> </Extensions> This may not be there by default but it is safe to add, it forces ...


5

You must write an ArcMap Addin Extension. In the extension, listen to DocumentOpened event and from there, show your form. Useful Link To create the extension, use Arcgis visual studio template. Then change SetupEvents method like this: private void SetupEvents() { m_docEvents = ArcMap.Document as IDocumentEvents_Event; ...


0

Add the feature classes to a IGPValueTable object and pass that to the in_features property. Here is an example showing how to do it for the Union gp but it should give you the gist: Building a custom geoprocessing function tool Scroll down to Parameter DataTypes > Lists.


1

It looks like you have to call ISelectionEvents.SelectionChanged() to update this window. Put this after your selection is made, and it should work: Dim pSelectionEvents As ISelectionEvents = My.ArcMap.Document.FocusMap pSelectionEvents.SelectionChanged()



Top 50 recent answers are included