Hot answers tagged arcgis-engine
3
After several emails back and forth with ESRI customer support, I was unable to track down the source of this error.
However, I decided to remove the LicenseInitializer that was put in place by Visual Studio when I created the project (this used the AoInitialize class to attempt to initialize the license). Instead, I placed an AxLicenseControl on the ...
2
ArcObjects are primarily single-threaded COM components. That does not prevent you from writing multi-threaded applications, you just need to stick to certain guidelines.
See the SDK article Writing multithreaded ArcObjects code, it should provide all the information you need.
2
You saved a device context identifier, but ArcGIS creates and uses a different device context to print on afterwards. This means that what you draw in the layer extension is not visible in the output document.
You cannot use IPrintAndExport in your case because it does not allow you to reach the device context used when printing and exporting. You will ...
1
the solution is :
the new Model is like :
it Paramters like :
the Code :
Sub diso()
Dim gp As GeoProcessor = New ESRI.ArcGIS.Geoprocessing.GeoProcessor()
Dim trac As ITrackCancel = New CancelTracker
Dim Result As ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult2
Dim parameters As IVariantArray = New ...
1
I think the only option you have, is ArcGIS Server. And its OGC webservices just feel like a second though, to its own webservices.
Generally speaking, the type of people who believe in the FOSS movement, tend to work in Java/PHP etc rather than .NET. Hence there are very few successful Open Source projects in .NET.
1
I also get an error when attempting to click the context menu item in the sample:
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
'MapControlAppPropertyPage.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
...
1
In ArcObjects? Set the callout's AnchorPoint property to an IPoint at the desired map coordinates.
VB example here: http://forums.esri.com/Thread.asp?c=93&f=993&t=303569#949615
1
I think I encountered a similar issue. In my case, the application was binding just fine, as yours was, but when I tried to use any AxControls (Map, TOC, Toolbar), I got the same error that you did. (Link to my question)
I was unable to resolve the issue with technical support, but found a workaround for my project. If you are using AoInitialize put in ...
1
Few things to try:
Make sure the selection enumerator is either non-recycling (see IEnumFeatureSetup, or otherwise copy the feature geometries prior to adding them to the geometry bag (via IFeature.ShapeCopy).
Make sure all the input geometries, as well as the newly created Polygon have the same spatial reference.
Make sure all the input geometries are ...
1
ESRI Documentation says that this method does not support GeometryBags.
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002m000003vn000000
1
I have done this before, but with ArcEngine 9.3.1 and Windows XP / CE. At the time I think we had issues with the IGpsConnection interface so I rolled my own.
IGpsConnection Interface
IGpsConnection Reference for ArcEngine 10.0
IGpsConnection Reference for ArcEngine 9.3.
Notes
You will also need to look at the IGpsFeed and IGpsDisplayProperties ...
1
Since ArcGIS Desktop defaults to a direct connection when connecting to SDE starting with 10.1, you need to make sure that your clients have the appropriate SQL Server Native Client installed.
Since we are running SQL Server 2012 we downloaded the native client portion of the SQL Server 2012 Feature Pack. After installing it on the client, the application ...
1
If you are using Arcpy scripting, data lock issues have become even more problematic with 10.1.
If the locks are being created by your code, then you aren't cleaning up after yourself. Release all references to feature classes, workspaces, cursors, etc. The locks are removed when you have no more references to the objects being locked.
Well, that is ...
1
I am not sure of the legality of this (found it through a Google search) but here is a training manual (exercises) from the ESRI training course Introduction to Programming ArcObjects using the Microsoft .NET Framework: http://env1.kangwon.ac.kr/gis/manuals/engine/docs/introduction_to_programming_arcobjects_using_net_full.pdf
There is a lot of step by step ...
1
I found a solution to this:
Type factoryType = ype.GetTypeFromProgID("esriDataSourcesGDB.FileGDBWorkspaceFactory");
IWorkspaceFactory mdWorkspaceFactory = (IWorkspaceFactory)Activator.CreateInstance(factoryType);
IWorkspaceName wsName = mdWorkspaceFactory.Create(@"C:\temp\rastercat_test", "rastercat_test.gdb", null, 0);
IName name = (IName)wsName;
...
1
Hello Michael(it sounds like Knigth rider..jejejeje)
You already has the procedure to rotate, it is quite easy...then to scale the map you can use somethig like this:
var p = this.CurrentContentView;
if (p != null)
{
var currentExtent = new Envelope();
var newExtent = new Envelope();
var newPoly = new ...
Only top voted, non community-wiki answers of a minimum length are eligible
