ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products, ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.
3
votes
1answer
21 views
ArcObjects (VB.Net) Python Integration with object passing?
This link illustrates one method for calling python scripts from within an ArcObjects environment. The results of these tasks are returned as strings. I wonder if it is possible to call a python ...
1
vote
0answers
17 views
drawing line from points [duplicate]
I have a series of XY coordinates. I want to use these points to draw a line in ARCMAP using arcobject10.1 using c#. I have saved this in a table inside geodatabase.Am i supposed to create a feature ...
3
votes
2answers
70 views
How to do raster conditional comparisons in .NET?
I am comparing a raster with a constant value by raster calculator. Now I want to do this in a c# code.
Question
Is there any process to do this kind of raster conditional comparison in .net?
1
vote
0answers
52 views
Getting started with development for ArcGIS Server
I'm currently working on upgrading a C# web service I wrote a couple of years ago built against ArcGIS Server to ArcGIS Server 10. The application in question does some basic spatial queries and ...
2
votes
2answers
393 views
What issues exist with using log4net as a logging framework for ArcGIS Desktop?
While updating some ArcObjects projects to ArcGIS 10, I realized that I don't have a comprehensive logging strategy. Sometimes it's log4net. Sometimes it's System Trace/Debug. Sometimes custom ...
0
votes
1answer
23 views
how to create table and layer in c#
I have used Make XY Event Layer to Creates a new point feature layer based on x- and y-coordinates using python and it worked for me. Now as a need of my project i want to apply the same in c# using ...
0
votes
0answers
31 views
Is snapping working when changing from NAD83(decimal degree) to NAD83 Zone UTM 11N(meters)?
I've used the following ESRI snippet to Convert the display extents in Pixels (at the current map scale) and then return out the map units.
public System.Double ...
1
vote
1answer
36 views
ArcGIS crashes with no error number in Visual Studio
I've been developing Add-ins for a while with Visual Studio 2008 and ArcGIS 10.
But in my new Add-in development process, I receive no error from Visual studio and ArcGIS crashes with error "Arcgis ...
2
votes
1answer
591 views
How to edit a given version of geodatabase?
I have a versioned geodatabase. Any of that versions are used only by one user. So then user called "XXX" has a version called "XXX". So then now I want to make a changes on given version, but when I ...
2
votes
0answers
40 views
Differentiate between 10-based Locator and Other Locators
In ESRI documentation, it states that the IAdvancedIntersectionGeocoding interface is only available for use in older locators (9.3.1 and below). I have verified this statement. One major problem is ...
0
votes
0answers
25 views
Can I access the request URL in a Server Object Extension (SOE)
I would like to obtain the full URL of a REST request inside of an ArcGIS Server SOE.
I would like to return the full URL to an output file. But, the service may be exposed on different servers or ...
1
vote
1answer
18 views
VB.Net Field Population Methods
Disclaimer: I am basically brand new to VB.NET and ArcObjects.
I am computing some statistics as a component of a larger arcobject script. I write these components to an ITable. This ITable is ...
3
votes
2answers
897 views
How to list ActiveView SelectionChanged event delegates in ArcObjects .NET?
I currently have an issue in an ArcObjects ArcMap add-in where my event handlers are seemingly-randomly being unhooked from the event I'm trying to catch. I've spent some time looking for a way to ...
2
votes
1answer
37 views
Creating maps programmatically using ArcObjects. Adding legends, scale bars, north arrows?
I'm looking for some examples related to the publishing of maps programmatically to image format using ArcObjects. More specifically I would like to add standard map elements such as a scale bar, ...
2
votes
1answer
125 views
Why does get_datasets not return all the datasets in the database?
I have code that gets all the Feature Datasets in a database in order to loop through them and find the one I want. This code returns 2 datasets of 24 in an SDE 9.2 database, but 3 datasets of 24 in a ...
-1
votes
0answers
22 views
Help running Snippets in ArcObjects
I just started learn ArcObject with C#.
It is good for but when I try to do some thing more I am getting more problem like if I want execute snippet code in Engine, Map I do not know how to run and ...
3
votes
2answers
960 views
How to merge two polylines in code?
We are currently working on a project where we have to merge sections (polylines) to a route, but the big question is how you do this. We have currently tried adding those two as segmentcollections ...
2
votes
1answer
48 views
Stand-alone Server Object Extension (SOE)
I would like to setup a REST service through ArcGIS Server.
In this case I do not need a map service, but it seems like you can only deploy an SOE as an extension to another service. It seems ...
1
vote
1answer
34 views
How to get polyline out of multipart feature using ArcObjects C#
I've got a polyline feature class and I've identified the first feature that is a multipart feature. I now want to find out which of the paths of this multipart feature intersects with a point.
Up ...
7
votes
4answers
2k views
How to release the lock on a gdb?
I have problems to release my gdb in ArcGIS10. My tool works with an local gdb, but I failed to release it after the process.
In Ag9.3 I can release it simply by Marshal.ReleaseComObject(workspace), ...
0
votes
1answer
44 views
Featureclass search failing in C++. But working in C#
I need to perform search on a FeatureClass using ISpatialFilter for a given Point (x,y).
I wrote a program in C# to do that and its retrieving the features as expected. But the similar program in C++ ...
-1
votes
0answers
42 views
Need help with VBA code for filling a table
Bonjour a tous;
je travail VBA dans arcgis 9.3
j'ai crée un formulaire avec une liste déroulante et une liste texte et autre controls:
quand je sélectionne un type de station dans la liste ...
4
votes
3answers
242 views
What types of GIS problems does functional programming address?
After reading @ray vernagus post about using ArcObjects with F#, I have been wondering ... what types of GIS problems are better handled by Functional Programming, as opposed to more traditional forms ...
1
vote
0answers
268 views
Intersecting with Geodatabase.ISpatialFilter - no results
I'm trying to intersect two layers and get resulting features with the following code I've written:
ESRI.ArcGIS.Geodatabase.ISpatialFilter spatialFilter = new ...
1
vote
0answers
107 views
How to get SplineWithBarriers to work in C#
I have been having fits trying to get SplineWithBarriers to work but to no avail.
My environment:
Windows 7 64 bit
Visual Studio 2010 Team Edition
ArcMap
Release Version 10.0
Product Version: ...
2
votes
0answers
245 views
Rendering raster layer from DTED based on height color map
I have a raster layer that was create from DTED file (dt1 specifically), created by the following code:
var rasterLayer = new RasterLayer();
rasterLayer.CreateFromFilePath(dtedFilePath);
The dted ...
2
votes
0answers
404 views
Intersect two layers and get resulting features
I have X layers on a map and I need to intersect chosen layers (two per time) and color resulting features.
I'm trying to get this code working
// get first feature (index 0)
...
2
votes
1answer
89 views
Write string to status bar that doesn't go away
I'm attempting to write the number of items matching a given query to the statusbar. when i debug through the code, i am able to step through and see the message hit the statusbar, but then it ...
5
votes
2answers
275 views
Why do I get a “. not nullable field error” when attempting to split a feature?
I'm trying to split feature, by point, into 2 new features.
var pFeatureEdit = lineToSplit.Feature as IFeatureEdit;
var set = pFeatureEdit.Split(point);
When this feature has configured ...
1
vote
1answer
52 views
How to set min and max value for stretchType: esriRasterStretch_PercentMinimumMaximum
How can I set the min and max values for the stretch type "Percent Clip" in arcobjects?
It's possible to set the Stretch type:
rasterStretch.StretchType = ...
2
votes
1answer
31 views
Trouble storing an IMap with ArcObjects 10 and IPersistStream
I'm storing a reference to an IMap in a custom object (which is stored by a custom extension) so that it can listen to map events. When I save the custom object using IPersistStream and then reload ...
1
vote
0answers
42 views
Overlapping Polygons in same feature class using Arcobjects
I have a polygon feature classs with millions of records, I need to find list of overlapping or intersecting polygons in the same feature class, and how to do it efficiently?
I need a ESRI ...
2
votes
3answers
58 views
Get IWorkSpace from IGxObject
I am creating a tool that opens an IGxDialog which it's objects are filtered to show only workspaces, my question is how can I convert IGxObject to IWorkSpace or get the selected workspace without ...
1
vote
1answer
43 views
HRESULT - IPersistStream.Save()
I have converted a VB6 project to C#, and there is one problem I cannot find documentation on. I am saving an IPropertySet to file by using IMemoryBlobStream and IPersistStream, as seen here:
public ...
2
votes
1answer
446 views
How to insert DateTime null using IRowBuffer
I am using IRowBuffer/IFeatureBuffer to insert fields to SQL Server 2008 DB.
When inserting a field I am using:
public void SetValue(IRowBuffer buffer, string field, object value)
{
int ...
0
votes
0answers
41 views
Snapping with mutiple custom tool using diffrent snapping types
I have a custom tool with snapping type is (snapping to point + snapping to edge), and the second tool having snapping type is snapping to point only, so when i select the first tool it works well, ...
1
vote
1answer
34 views
How to write a file in an Server Object Extension (SOE)
I would like to create a file with an ArcGIS Server Object Extension and return the url. Is this possible? Where would I write the file?
I'm working with .Net, IIS, and AGS 10.1.
2
votes
3answers
77 views
ARCObject query
I'm using ArcGIS 10.1 and developing an application using visual studio 2010 and ARCObject SDK 10.1.
I would like to use identity tool in my application and if not possible I want to execute a query ...
3
votes
1answer
50 views
Customizing Identify Dialog in ArcMap
Any idea for customizing Identify Dialog in ArcMap.I want to use my control (for example a list view or a custom control) to show attributes of features in same native ArcMap Identify Dialog,mean ...
0
votes
0answers
22 views
identify tool in arcobject
Please see the attached layer. I have used following code in the OnMouseDown event. my objective is to select the X_coor , and Y_coor field from the layer based on the arg.X and arg.y.
However when ...
0
votes
2answers
44 views
Zoom and Pan using scroll wheel in Arcobjects
is there any way to zoom using scroll wheel ? i have tried AutoMouseWheel of map control, it works well for the first used custom tool, but once i change the tool, it stops working , i would like to ...
0
votes
1answer
27 views
ArcObjects IDataset.Copy causes program to crash
My implementation of IDataset.Copy continues to crash and I cannot figure out why. The program attempts to copy a shapefile from a temporary folder in one directory to a final folder in another ...
3
votes
1answer
25 views
Does IDistanceOP.EucDistanceFull require a projected coordinate system?
I have designed an implementation of ArcObjects' IDistanceOP.EucDistanceFull. It takes its input as a feature class and converts it to a GeoDataset with which EucDistanceFull can work with. It works ...
6
votes
1answer
307 views
Display Feedback “Stutters” When Moving Features
I have a custom tool for moving features that implements IDisplayFeedback and geometry-specific CoClasses to show the user where they are moving the feature.
IMovePolygonFeedback polygonFeedback;
...
2
votes
2answers
39 views
How to create a turn restriction in ArcObjects
I am having difficulties creating turn restrictions in ArcObjects. I have found a way to Add a a network turn to restrictions through the INetworkForwardStarEx.AddTurnRestriction() interface. But how ...
4
votes
1answer
60 views
How can I query lines that meet in endpoints, and show the result in clockwise order
I have some polylines - roads. They meet in an intersection like on the picture:
I want to find out which roads meets Road A - endpoint to endpoint - and i want to know the clockwise order of the ...
7
votes
3answers
2k views
ArcObjects (ArcGIS for Desktop and C#): How to cast between the ArcMap COM UI and my custom .Net UserControl objects?
I'm creating a utility to run in ArcGIS for Desktop using ArcObjects (9.3.1 SDK) and C#.Net. My prototype involves a toolbar with two comboboxes and a tool. The first combo selects a layer in the TOC, ...
5
votes
2answers
2k views
No constructor defined?
In my C# Console Application, Visual Studio 2010 highlights new FeatureClassNameClass() in my below line of code and states "ESRI.ArcGIS.Geodatabase.FeatureClassNameClass has No constructors defined" ...
1
vote
0answers
44 views
How to get hold of the Activated Event for the ArcMap window?
I am using ArcObjects 9.3 .NET. In my ArcMap dockable window, I have a single element host hosting a WPF user control (That's the only means of using WPF for ArcMap extensions as far as I know).
...
2
votes
1answer
313 views
ITopologicalOperator and Z Values
I have 2 polygon featureclasses with Polygon ZM features.
I am trying to do a ITopologicalOperator.Difference() on these feature classes but it errors saying that:
Geometry cannot have Z values
...




