C# is a programming language.
0
votes
0answers
27 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 ...
0
votes
0answers
27 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 ...
0
votes
0answers
23 views
I copy/pasted code from ArcGIS .NET ashx proxy into my Controller method, now debugging is jumping all over the place (multi-threaded, apparently)
I have a controller that takes in JSON data via HTTP POST. Inside this controller is a call to a method that I copied/pasted from ArcGIS's .NET implementation of the proxy that's needed to connect to ...
2
votes
0answers
53 views
How to start developing with Jeppesen C-MAP?
I've just downloaded all the contents from the FTP of Jeppesen for their product called C-MAP CM93.
I've been reading the documentation contained in the SDK folders, but I can't figure out how to ...
0
votes
0answers
25 views
How to specify field name in raster to feature conversion tool or intersect tool?
What I want to do :
input: raster file, polygon feature layer
process:
Convert raster to polygon using IConversionOp.RasterDataToPolygonFeatureData Method
Intersect resultant polygon feature class ...
0
votes
1answer
25 views
How do I initialize the ArcGIS proxy via server side .NET code (C#)?
I know how to do this via JavaScript code:
esri.config.defaults.io.proxyUrl = "../proxy.ashx";
But, how do I do this in .NET? I am very new to the GIS space.
1
vote
1answer
33 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 ...
1
vote
0answers
13 views
xy tolerance from c#.net
For some graph work, I need the value of X,y tolerance. I found ISpatialReferenceTolerance.XYTolerance Property. But I couldn't find any option that how can I get ISpatialReferenceTolerance interface ...
0
votes
0answers
31 views
Support for Arc/Info Binary Grid format by C#-bindings of GDAL [migrated]
I want to read Arc/Info Binary Grids and convert them to other image formats using the C#-bindings of GDAL. I installed FWTools 2.4.7 and the current binaries (MSVC2010 (Win64) -stable) from here. ...
0
votes
0answers
40 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, ...
0
votes
1answer
40 views
How do I exclude raster layers from legend? (Silverlight, ArcGIS Server)
I'm trying to adjust my Print Widget so that raster layers do not show up in the legend. My thinking was that I could test for a layer type and not add the item to the legend if it is a raster.
...
0
votes
1answer
25 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 ...
0
votes
0answers
19 views
A procedure imported by 'Esri.FileGDBAPI.DLL' could not be loaded
I'm having issues getting my Esri.FileGDBAPI.DLL to work. I have the other two files, FileGDBAPI.dll, FileGDBAPID.dll in my bin folder. I can only add the Esri dll to my references, the other two I ...
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 ...
2
votes
1answer
63 views
Getting “Failed to open tool” message when trying to run geoprocessing tool from C# code
I've been experimenting with the Military Aspects of Terrain Template, which has a toolbox associated with it. I've been using the following WPF Runtime code, which should open a tool in the ...
0
votes
1answer
66 views
What should I start with WebGis Mapserver?
I'm not native English Speaker and I'm a graduated student who want to have a master degree in software engineering.
I have a thesis relative with "Build a WebGis for air pollution in Vietnam's ...
1
vote
0answers
42 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).
...
1
vote
1answer
33 views
How to extend a custom NASolver in ArcGIS Server 10.1?
The past year we developed a custom NASolver with C# , it works fine and that job has finished.
Now we are planning to use it from ArcGIS Server. The problem is that we have no information for that. ...
1
vote
0answers
25 views
What are the standards to implement scale bar?
I am working on .osm data files, and now i want to implement scale bar for available data.
logically i have created the scale pixel is to geo location. I want to know whether there is any standard to ...
2
votes
2answers
68 views
How to use shortcuts in dockable windows?
I have developed a custom dockable window with textboxes, comboboxes and buttons for use in ArcMap. After the user clicks on a button in the dockable window a function is invoked.
How can I invoke the ...
2
votes
1answer
58 views
Arcgis 10.0 desktop: how to clear All transformations from map
I have a custom extension which adds some custom transformations to the map. When turned off, the extension is supposed to remove all the added transformations.
However, when calling ...
1
vote
1answer
50 views
What is the preferable value for setting tolerance for selecting a feature
I know it's really a basic question. But I am really confused about this. For selecting a point feature by mouse click, we need to set a tolerance value to create the envelope. And here is the problem ...
0
votes
0answers
26 views
add data to toccontrol
When i open MXD file, it isn't add to TOCControl, but it is dispalyed. How solve it or it is imposible?
Code from standart ArcEngine MapControll APP
private void menuOpenDoc_Click(object sender, ...
3
votes
1answer
50 views
Set unique values to different groups programmatically
I have a polyline feature layer. After doing some computation, I update a field of that layer and want to set unique color for different value of that field. We can do this from symbology using unique ...
1
vote
1answer
67 views
How to create dynamic sub-menu in ArcMap?
I created a static menu contains 3 static items like in this link create menus,
I want to add a sub-menu and get the menu's items from database like in this image:
I already did the left part with ...
2
votes
0answers
55 views
Geodesic distance between two polygons in ArcGIS
Does the IGeometryServer2 interface work in desktop applications? My solution is an Add-in for ArcGIS 10. I'm currently passing it two valid polygon features that are in a projected coordinate system. ...
0
votes
0answers
30 views
How can i draw an image on map?
I am using ArcGIS server 10.
and I'm programming with C#.
now I need draw an image to especially point on map.
How can I do it with C# ?
please help me :)
1
vote
1answer
77 views
Problem in splitting and removing Polyline
I am stuck at a problem for weeks, Please Help!!!
I am making program in C#
Here is what I need to do --- I have two polylines that are intersecting with each other at some points. I want to delete ...
2
votes
0answers
48 views
Write table blob field to file
I have a table with blob field and some others as well. I am trying to read blob field and save it to file using IBlobStream, and the thing compiles. The problem comes up in run-time, when calling ...
0
votes
1answer
36 views
I want to change using C# the style of a set of shapefiles once I have uploaded them or while I am uploading them
I am using C# and the WebRequest class to create a worksapce and then another WebRequest to create a datastore and upload a folder full of shapefiles to a geoserver. However, I would also like to ...
0
votes
0answers
38 views
I want to change EPSG:4326 to EPSG:900913 using C# for a set of uploaded shapefiles
I have written some code (using help from these pages) that uploads a directory full of shapefiles to a geoserver using C#. The uploaded shapefiles are set to EPSG:4326 however I would like them to be ...
3
votes
1answer
119 views
Pivot a polyline at vertex or distance using ArcObjects C#
I hope you can help me with that one. I'm using ArcObjects with C# trying to rotate only one part of a polyline at a vertex or distance along the polyline. The polyline is zAware and has values at ...
4
votes
1answer
98 views
How to set focus on ArcMap map window using arcobjects and c#.net
I have developed a custom dockable window with textboxes, comboboxes and a button for use in ArcMap. After the user clicks on the button in the dockable window a function is invoked. After the ...
3
votes
0answers
92 views
Can custom map tiles be properly rendered via ArcObjects within my ArcGIS 10.1 Desktop AddIn?
Within ArcObjects for ArcGIS 10.1, we are attempting to render pre-generated map tiles as a
basemap (group) layer. The tiles themselves are of the typical web mercator aux. spherical tiling scheme. ...
2
votes
2answers
85 views
Add a new field in a already created feature class
I have a feature class. On the basis of some calculation, I want to create a new field in that table and set value of that field. To do so, my algorithm is:
void UpdateFeatureClass(IFeatureClass ...
1
vote
0answers
52 views
Distance Units of a Layer
I am developing an ArcGIS desktop addin. I am attempting to get the distance units (ft, mm, km, etc.) from a layer in my .mxd and display it on a windows form. How can I do this? I can access the ...
3
votes
3answers
127 views
ArcObjects C#: select intersecting polylines
My questions seems trivial but it is a real blocker for me. So please help!!!
How can I, using ArcObjects with C#, select only those polylines in one layer that intersect with each other?
It sounds ...
0
votes
1answer
66 views
Object does not exist in the namespace “http://schemas.esri.com/arcgis/client/2009”
I am trying to move all of my GIS code over the Visual Studio 2012. I have added the following references:
C#:
using ESRI.ArcGIS.Client;
using ESRI.ArcGIS.Client.Geometry;
using ...
0
votes
0answers
41 views
How to expand Ogr Sql Functionality
I'm using Ogr2Ogr for some geometric & querying operations by storing the results in SQLite files.In SQLite there are some functions I use.For that,I need to extent sql functionality.For that I'm ...
1
vote
1answer
122 views
Get the distance from a point on a polyline to polyline's from point
I have a polyline and a point on the polyline. I need to find the distance from the from point of the polyline to that point.
ICurve.QueryPoint method does the opposite thing. It gives a point ...
1
vote
0answers
77 views
Using custom contextMenu in Arcobjects(C# and ArcMap)
I added a new custom tree to TOC which looks like this:
IObjectClass
IFeature
IFeature ...
IObjectClass
IRow ...
made context menu using this sample ...
2
votes
1answer
88 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 ...
2
votes
0answers
63 views
Can I use an Update cursor with a versioned feature class which has attachments in ArcObjects .NET
I have a problem with my code (C# ArcObjects 10.1). We are trying to update and insert 10 - 15 rows at a time into a feature class hosted in ArcSDE 10.1 on SQL Server 2008 R2.
We have a feature class ...
0
votes
0answers
15 views
How to use Mercator projection on png map [duplicate]
I´ve got map(png) with size 2143x1723. When i want to get WGS84 coordinates to each point i use following algorithm
for (int i = 0; i < pictureBox.Image.Height; i++)
{
// ...
2
votes
1answer
38 views
Reading Attributes from Attributed Relationship Class ArcObjects
I have an M-N relationship class with attributes. I am listening to the IRelationshipClassEvents.OnCreate Event event to see if any new relations are created. How can I read these attributes from an ...
1
vote
1answer
26 views
Extent is zooming map to 0,0
When I use this code (from the example):
ESRI.ArcGIS.Client.Geometry.Envelope myEnvelope = new ESRI.ArcGIS.Client.Geometry.Envelope();
myEnvelope.XMin = -130;
myEnvelope.YMin ...
2
votes
1answer
50 views
How to save raster results of IExtractionOp?
I'm using IExtractionOp to clip a raster by polygon:
IExtractionOp operation = (IExtractionOp)(new RasterExtractionOp());
IRasterBandCollection rasterBandCollection = ...
2
votes
0answers
47 views
ArcObjects running in Addin slower?
I have created a class library which does some geoprocessing. The addin calls a class that is an async process. I have ensured the thread is STA and the arcobjects are thread safe (ie. not passed from ...
4
votes
0answers
44 views
Is it possible to share temporary (InMemoryWorkspace) FeatureClass between Threads?
I'm trying to run some operations (functions) in seperate threads so that the UI is not blocked. One of this operation is the generation of a feature class copy from an existing feature class into a ...