C# is a programming language.
1
vote
0answers
14 views
Why use C# rather than Java API of ArcGIS Engine (or vice versa)?
I'm going to lead a development of an ArcGIS Engine application and facing the choice mentioned in the title. We have all licenses to develop our application in C#, so Microsoft's licences are out of ...
0
votes
1answer
26 views
How to add a Data Frame to mxd in a c# stand-alone application?
I am writing a stand-alone application in c# (using vs2010). I have ArcGis Desktop license.
I only need to insert a new data frame in an mxd file and save this mxd.
So: I create MxDocument coclass. ...
2
votes
0answers
32 views
Programmatic conversion between GML and GeoJSON
I am modifying a .Net (C#, MSSQL) system to add some geography that I'd like to display on a leaflet map.
I had originally expected to save GeoJSON directly into text strings in the DB, but after ...
1
vote
1answer
25 views
Did anyone use the IRelationalOperator Interface to check if a point feature within a polygon feature?
I use the following code to check if a point feature is within a polygon feature
pFeaBlock is a polygon feature and Fea is a point feature
int blockID = -1;
IFeatureCursor pBlockCursor = ...
2
votes
0answers
25 views
Geoprocessor object won't execute
I've tried several different approaches to getting the simple geoprocessing package that I created to execute from my C# project . . .
ESRI.ArcGIS.Client.Tasks.Geoprocessor _localGPService = ...
1
vote
1answer
29 views
How to add a raster to ArcMap if file name is unknown?
I have a raster file for which I know the the workspace, but not the filename (it is a temporary file generated by operations from my program that randomizes its name on creation, i.e. "ras457"). I ...
0
votes
2answers
39 views
How to move an endpoint of a polyline feature to specific coordinates
What looked like a simple task has kept me busy for a while now. I would like to snap the endpoint of a polyline feature to a known point of which I know the coordinates.
My first try was the ...
0
votes
2answers
48 views
Parallel Computing and Raster Operations in ArcObjects gives cryptic error
This is a problem I have been struggling with for awhile. The code below takes 1-3 input feature layers (pFLayer) that were stored into a list called pFeatureLayerCollection, casts them into ...
0
votes
0answers
31 views
How to create sector figure in ArcObject?
How to create sector in ArcObject 10.1? Now I draw one point, two lines, two arks. But I think it is not good. It is differents objects. I need one object.
Well. Now I drawing:
IElementCollection ...
0
votes
0answers
49 views
Can I display google map in arcgis desktop application without violating the license?
I have desktop application on C# 4.0 based on ArcObjects. What controls do I need use to display google map? Is it real?
0
votes
3answers
84 views
For a SDE FeatureClasses list all Roles that have been Granted any Privileges on it, and which Privileges each Role have on it
I have searched through the ArcObjects 10 SDK API and googled, but havnt been able to find what I am looking for, so thats the reason for me posting this question.
Q: How can I for a SDE ...
0
votes
1answer
54 views
SDE FeatureClass Granting and Revoking Privilege with ArcObjects
Q: How can I with ArcObjects GRANT or REVOKE Privileges like SELECT, UPDATE on SDE FeatureClasses to/from Roles?
The equivalent in normal Oracle would be something like this:
GRANT SELECT ON ...
1
vote
0answers
30 views
How Display WMS layer in AxMapControl?
I modify application (on c# .Net) based on arcobjects.
It is a desktop application. I use object AxMapControl Map1. I can load .mxd map in it.
Map1.LoadMxFile(mapName);
Map1.Refresh();
Now I need ...
0
votes
0answers
36 views
Scrollbars not visible in InfoWindow
I am having problems getting the scrollbars to show in my InfoWindow. Code is below. Any help would be appreciated.
XAML:
<DataTemplate x:Key="MyFeatureLayerInfoWindowTemplate">
...
2
votes
1answer
31 views
Using more than one graphics layer with a FeatureDataGrid
I am wanting to use the FeatureDataGrid to display data. The problem is I have more than one layer that contains data that needs to be displayed.
This is how you use the DataGrid for one layer:
...
3
votes
1answer
36 views
How to get any changes happened in the current SDE version?
How to get any change done on the map in the current version of sde. using arcObjects
e.g. if i had a line on the map. and in the current sde version i changed the length of that line. how to get this ...
0
votes
0answers
21 views
How to display label shapefile to attribute on map?
I have attribute of shapefile: ex1, ex2 and ex3. I want display all :
ex2
ex1---------- . I code by C# , help me! thank all so much !
ex3
1
vote
1answer
43 views
Getting SRID from prj file? [duplicate]
I've seen varying questions relating to this question. Except mine revolves around C#. I'm trying to validate that the projection I'm expecting matches what is in all the .shp files I'm reading.
...
4
votes
2answers
53 views
Near analysis with mixed feature types in ArcObjects
I am trying to emulate the Near (analysis) ArcGIS tool in ArcObjects. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00080000001q000000
I want to use Mixed Feature Types. I have a ...
0
votes
0answers
29 views
How to get The character spacing from a ITextElement arcgis engine 9.3 C#
i have a problem.I can set character spacing to a IElement as ITexElement like :
TextSymbolClass pTextSymbol = new TextSymbolClass();
pTextSymbol.CharacterSpacing = 10 ; //etc
...
0
votes
2answers
128 views
ArcObjects - accessing layer data table from C#
I've spent all day yesterday trying to trace all my the errors but I'm just completely stuck now. Google isn't helpful either.
I'm trying to create a small C# tool which opens my MXD file in ...
2
votes
1answer
58 views
Slope tool error when running from arcObject add-in tool
My problem is related with Global DEM to Slope calculation. The slope tool works when raster is projected or the map is projected where the raster is added. And also, if the raster and map both are ...
0
votes
0answers
52 views
Changes in Activeview are not in exported image
I am trying to export without Arcmap so i created a webservice in C#. The export works OK. The problem is that whatever i do with the activeview(pan, zoom) it is not affected to the exported image. I ...
0
votes
1answer
50 views
How to load layers from postgis to dotspatial or sharemap viewer
I want to develop a PostGIS viewer for PostgreSQL (with SQL query editor) to visualize PostGIS layers.
Which spatial library (.net C# supported) do I have to use?
0
votes
0answers
61 views
Export From PGDB to ArcSde Using C#
I need help exporting a personal geodatabase Feature Class to an ArcSDE geodatabase using C# ArcObjects with ArcGIS 9.3. I just want to replicate the tool Feature Class to Feature Class ...
0
votes
1answer
72 views
How can i generate parcel extracts on demand through a webservice
Ok, i need to generate parcel extract documents on demand. The backend is Arcgis 9.3.1 on SQL server 2008. I would like to build a webservice (C# .Net) on the server that generates these extracts. My ...
1
vote
1answer
36 views
Source code for interpolation using a known set of random points in an area of land
In a fixed area of land random points with their values are generated. I need to get a heat map for this area of land showing the variations using those known point values.
I have found that mostly ...
0
votes
1answer
106 views
Import shp geography data to SQL Server from C#
I have a set of shape files that I am attempting to read in C#.
My question is not the tabular .dbf data but the geography data (i.e. polygons and lines). How would I insert this data into a ...
0
votes
0answers
23 views
Problem in VersionEdit4.Reconcile4 method
I had an standalone application in which i am getting all the available versions in the database. Based on user filter he selects multiple versions and reconcile it.
if ...
0
votes
0answers
43 views
How to check a polyline is self intersecting [duplicate]
How to check weather a single polyline is self intersecting to itself.
using arcobject C#
0
votes
0answers
37 views
MapInfo 11.5 - Zoom in Legends
Good afternoon !
With MapInfo v 11.5, we can use the zoom feature in a thematic map legend, so that it plays along with the map zoom (Release Notes: "The zoom feature uses a paper-based scale, so ...
0
votes
0answers
97 views
How to learn Arc objects (.NET, C#) for desktop applications but having only Arcmap desktop license
How to learn .NET and C# for desktop applications but i have only desktop license. I want to upgrade my self in the development side so i'm trying to learn this stuff and i'm searching all the ...
4
votes
2answers
118 views
What is needed to develop an ArcGIS application? (C#?)
I am trying to fully understand the genius that is ArcGIS.
I want to develop a piece of software that uses the engine. This application needs to import user data (GeoTIFF, etc) and allow users to put ...
1
vote
2answers
61 views
get valules for all fields from selected features
The following code works for retrieving values within a particular field(Name1), but I want to retrieve mulitple fields. Am I to create multiple variables for each field?
IMxDocument pMxDocument = ...
2
votes
1answer
33 views
arcgis graph vs .net graph
I am trying to show some elevation/cross section data in a graph. I am trying to do this in arcgis graphs. But because of my previous graph work was in .net, I found arcobjects.net API for graphing is ...
1
vote
2answers
79 views
Creating an ArcMap Extension
As ArcGIS 10 doesn't really support the full COM, I am looking at creating an extension.
I am looking for samples to look through, to familiarise myself with them, but cannot find any.
Any ...
2
votes
1answer
90 views
Why does copy convert my Tiff raster value range?
Recently I have worked with some raster dataset. And I found there are different kind of raster dataset. Till now I have worked with grid type raster dataset and my add-in works fine with this type. ...
0
votes
1answer
47 views
How to add an existing feature class to a new feature dataset
I have a feature class.
IFeatureClass AOIfc = AOIfws.OpenFeatureClass("BrigadeAOI");
I need to be able to put this feature class into a feature dataset that is newly created. The following line of ...
2
votes
0answers
46 views
How to add individual layer of WMS group layer to ArcMap?
I am attempting to add a single WMS layer that is part of a WMS service group layer. I am writing code to do this using ArcObjects in C# .Net. So far I have been unsuccessful. I can either only add ...
2
votes
1answer
44 views
Is there any way to reset feature cursor?
When we search within a feature class, it returns a feature cursor. To get features from a feature cursor, I use following code snippet:
private List<IFeature> GetFeatureList(IFeatureCursor ...
1
vote
1answer
82 views
Loading an extension-related mxd in ArcMap by double clicking it
I am currently working in a company offering GIS solutions, and using ArcGIS tools on a daily basis. One of their main products is an ArcMap extension, which I am assigned on to correct some remaining ...
1
vote
0answers
70 views
Can't order/sort String columns in ArcMap attribute table
I am new to this site as a registered user and new to GIS in general, and it has proven quite useful to me.
I have a very annoying problem with the attribute table being filled by an ArcMap ...
2
votes
2answers
93 views
How to run a custom Geoprocessing tool using no parameters?
I created a custom geoprocessing tool called "CreateCoverLayer". It has no input or output parameters. I have the following snippet of code, but get an error message due to the fact that the Execute ...
0
votes
1answer
44 views
Comparing ShapeFile Data in C# [closed]
I have made a List containing all the original data (.shp files), and I have another List containing the modified data. I basically want to check all the modified file data against the original... So ...
3
votes
1answer
41 views
How can I hide a tool from command window under category
I have created a tool, a button and a dockable window under one project. To open/close the dockable window, button is used. For some specific work, by clicking some specific button from dockable ...
1
vote
2answers
137 views
Searching for c# code to convert from UTM to WGS1984 (and back)
I'm looking for code in c# that converts coordinates from UTM to WGS1984 (and preferably backwards as well). I need to convert coordinates from only one zone (36N).
I've found this and this, but they ...
3
votes
0answers
86 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 ...
1
vote
1answer
81 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
1answer
57 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
44 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 ...