C# is a .NET programming language.

learn more… | top users | synonyms

1
vote
2answers
79 views

Return Information from Feature Class Fields by XY Point

I am trying to get information from fields within specific feature classes based on an XY point. The user will click on the add-in tool, click on a location in ArcMap, and the tool will find the ...
2
votes
2answers
92 views

Is it possible to lock records or attributes indefintely if a field is populated?

I am creating a c# ArcGIS addin where I have a feature class stored in Oracle, when a feature is created some of the fields within the table will be populated. If field X is populated, then certain ...
0
votes
0answers
66 views

ArcObjects 10.3: Add image to .mxd

I'm new to ArcObjects (C#) and I'm having trouble finding an example of how to add an image (raster layer) to an MXD. I'm looking to open the MXD, and edit it as a file, without having a workspace ...
2
votes
1answer
49 views

Release IFeature Object Efficiently

I have the following code: //qf is a query filter var fCursor = FC.Search(qf, true); var feat = fCursor.NextFeature(); int selCount = FC.FeatureCount(qf); var userId = new int[selCount]; if (...
0
votes
1answer
111 views

Reconcile and post with c#

I am trying to understand Esri example of reconciling and post with C#. Could someone give me some hints or point me in the right direction. The reconcile and post in Arcmap toolbox has edit version ...
1
vote
1answer
338 views

How to create a polygon with four coordiates

I need to draw polygon shape with the following coordiantes private List<IGeometry> geos2 = new List<IGeometry>(); var gf = new GeometryFactory(new PrecisionModel(), 3857); ...
2
votes
1answer
101 views

Create geometry from a result of intersection [closed]

Split a polygon in half with an extended line public Ipolygon CreatePolyFromIntersection(Ipolgon polygonA, Ipolygon bounradyThatcontainsPolylgonA, IFeature lmark){ ...
2
votes
1answer
71 views

Create New point

creating new point with different coordinates not changing the position. First point The bellow code create a point on the map VectorLayer pushPinLayer = new VectorLayer("PushPins"); ...
0
votes
2answers
359 views

How two add line from point A to B

I am trying to draw a line between two lines. I could create points by using the createPoint Method using System; using System.Collections.Generic; using System.ComponentModel; using System....
0
votes
1answer
758 views

How to make a point from real latitude and longitude values

My program has a center point and one moving object . At this moment this point is somewhere in Europe.But Now i have to change that point from the latitude and longitude values(of Australia) . Please ...
0
votes
0answers
71 views

How to convert real altitude and longitude values to GeometryTransform.TransformBox values

I have a running program which has a point but its values are not dynamic . Current code for the point is var mathTransform = LayerTools.Wgs84toGoogleMercator.MathTransform; GeoAPI....
1
vote
1answer
57 views

How can i get the center point for victoria

I am following this tutorial. But as per this tutorial the the center point is located in Netherlands. Now I need to change this for Victoria, Australia. Could you please tell me how can i change it. ...
2
votes
2answers
105 views

Query Features in Certain Direction

I have a polyline that I would like to query features that are on it's left, right, top, bottom. I am not looking for the features surrounding it but for features that are on a certain location from ...
1
vote
1answer
73 views

Comparison between using VB.net or C# in ArcObjects or ArcGIS Server [closed]

Is there any differences between using VB.net or C# in ArcObjects or ArcGIS Server based projects, in functionalities, samples, Q&A community? Is there any comparison which covers these aspects to ...
2
votes
0answers
57 views

Programmatically fetching current Add-In version using ArcGIS Pro SDK

The version of a custom ArcGIS Pro SDK Add-In is held in the config.daml of the Add-In project: <AddInInfo id="{some guid}" version="1.0" desktopVersion="1.1.3068"> How do I programmatically ...
0
votes
0answers
42 views

How to check if lat long overlaps geometry in STRTree

I am using NTS in C#. I have loaded the created STRTree and loaded the Geometry data in in.Now i am trying to search if a given lat, long is contained in which matching geometry and return its id. ...
2
votes
2answers
123 views

Proper way to check if a Factory Code is Projected or Geographic

I would like to create a SpatialReference with ArcObjects, but I won't know whether it is Projected or Geographic, I'll only have the SRID. Is it fine practice to use 'ISpatialReferenceFactory....
0
votes
0answers
22 views

How to create points on for Stations?

I have a set of coordinates for 6 stations. I will need to place a image on the specific coordinate and change the image based on my own data in real time. How can I create a layer to geoexplorer ...
1
vote
2answers
142 views

How do I generate an image of each polygon in a shape file? [closed]

I have shapefiles containing areas (states, counties, bodies of water, etc.) and need to generate an image (png / jpg) of each area. How can I do this? In my mind, the manual workflow would be: ...
2
votes
1answer
200 views

Standalone program can see license

I used standart license initialization code in C# standalone program. It was working perfectly on 10.1 and 10.2. But after migrating to 10.3 it says Licenses are not available. Meanwhile ArcMap and ...
1
vote
0answers
63 views

Writing and reading arcs using File Geodatabase API .NET library?

It looks like the File Geodatabase API has supported arcs since 1.2. But no samples have been included for the C or .NET library. Does anyone have any code that shows how to do this using the .NET ...
0
votes
1answer
32 views

C# ogrinfo with virtual vector source doesn't work GDAL 1.10

I am trying to use GDAL 1.10 with a vector virtual source which is nothing more than the example union of two shapefile layers. from the commandline, ogrinfo works fine on the source. But the C# ...
-1
votes
1answer
106 views

Spatial checking for 2 polygons intersect in ArcObjects? [closed]

I want to check source building intersect with target building (source buildings 150000 & target buildings 150000) this is very heavy data. i have use(Spatial Filter)(ITopologicalOperator....
0
votes
0answers
184 views

Buffering a polyline

I'm attemping to buffer a polyline that the user has drawn on a map (Google maps and OSM map). The user specifies a distance in metres and a polygon should be drawn around the polyline representing ...
0
votes
0answers
51 views

Upload Map to ArcGIS Online and convert to KML

Looking to upload any number of map types from a web application and then have ArcGIS online convert them to KML and then send them back the application. If the map can't be converted, give the user ...
1
vote
1answer
118 views

Using AddDataDialog in standalone ArcObjects/C# application?

I need some help with showing an "AddDataDialog" in a C# standalone application to select some feature classes from inside a file-geodatabase. Whatever I try, it ends up with an Exception which makes ...
1
vote
1answer
233 views

Map matching a stream of GPS points to possible bus routes & C# map matcher

I have streams of GPS points that are transmitted from a device aboard a bus in real time. I would like to use these points to infer which route the bus is following. I have routes stored as GPS point ...
0
votes
1answer
149 views

ArcGIS Runtime SDK for .NET (Windows Phone) - ArcGISLocalTiledLayer Issue

I'm developing Windows Phone 8.1 client for our company ArcGIS maps. Online layers works fine, but I need to deliver offline maps (Map Tile Package - .tpk file) to users with bad connectivity. My ...
6
votes
1answer
201 views

Setting Field in ArcMap Symbology Properties using ArcObjects?

I am programmatically rendering a feature layer in ArcMap but I can't set the Field property in the Symbology properties form. This results in the layer having the correct render/breaks/legend ...
0
votes
0answers
58 views

How to select object on the map in pan mode?

The user moves on the map (pan mode). The he clicks right mouse button. I want to select the element and then display context menu. What is the way to select element on the map in pan mode? I use ...
2
votes
3answers
2k views

Executing async method inside relaycommand using ArcGIS Pro SDK and MVVM?

I'm developing a "search tool" dockpane in the ArcGIS Pro SDK using MVVM. I have a button on my dockpane hooked up to a relaycommand in my viewmodel, which trys to call an async method in my model to ...
0
votes
1answer
116 views

Failed to run Local Geoprocessing tool in ESRI runtime sdk

I have created a gpk using the below python script in ArcGIS 10.3.When trying to consume as Local geoprocessing service in 10.2.5,I get below errors. The application is running using developer ...
0
votes
1answer
143 views

Mouse Double Click Events

I would like to display a Message Box Dialog when the user activates the -esri selection tool- and double clicks anywhere on the map. or when they doubleclick any feature on the map please note that ...
3
votes
1answer
496 views

DotSpatial problems with reprojecting shape files

I have a shape file with this projection: PROJCS["RD_New",GEOGCS["GCS_Amersfoort",DATUM["D_Amersfoort",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0],UNIT["Degree",0....
0
votes
0answers
55 views

Running ModelBuilder through .NET does not always created expected geodatabase?

This code is the run a ModelBuilder through C# .NET this ModelBuilder works to convert a (.dwg) autocad file to a geodatabase but the problem is sometimes it works perfect but other times it doesn't (...
2
votes
1answer
267 views

convert ordnance survey easting and northing data to WGS84 latitude longitude values

The C# code published here is not very accurate as also mentioned by tanoshimi. I think this has to do with the lack of 'approximate Helmurt transformation'. Just curious is anyone aware of some ...
2
votes
0answers
314 views

Loading Raster with SharpMap (GDAL) doesnt work

i have problems loading rasterfiles (.tiff) with SharpMap I tried initializing a SharpMap GDAL Layer but nothing happens. It doesnt even throw and error when debugging after i set a path for the file ...
7
votes
1answer
217 views

Adding new map to current project using ArcGIS Pro .NET SDK?

The new ArcGIS Pro SDK for .NET is currently in beta for ArcGIS Pro 1.1, and I'm having trouble with map/project objects. I can add layers to an existing map, but I can't seem to figure out how to ...
4
votes
1answer
630 views

Get the value/description from a domain or subtype for a given field's value?

I need to get a value from an IObject.Fields.Field using ArcObjects 10.x using the criteria listed below: If the field has a subtype associated with it, I need to get the subtype name/description ...
-1
votes
1answer
98 views

Trying to execute ModelBuilder through C#?

I have a problem when trying to execute a model builder through C# the application throws: an error has occurred error hresult e_fail has been returned from a call to a COM component Note : ...
2
votes
2answers
260 views

Changing the transparency of a raster layer with ArcObjects

I'm trying to do some simple things with the .net framework and ArcObjects, but have little experience with this type of development. I would like to iterate through the layers in a map document and ...
0
votes
0answers
96 views

how to find the polyline direction in SOE

I create routing route between A -> B -> c using SOE(Using C#). From here A - Origin, C - Destination and B - Intermediate terminal It's digitized route direction is A -> B and C -> B. When i ...
3
votes
0answers
683 views

C# implementation of concave hull / alpha shapes

I'm looking for a C# implementation of the Concave hull (alpha shapes) algorithm. I already found several Java, Python and C++ implementation but no C# version. The other implementation are quite ...
2
votes
1answer
200 views

How to change field length with ArcObject?

I want to change some string field in sdegeodatabse with bellow code. The code are running without any problem. but after running, filed length return to default length. What am i missing? static ...
3
votes
1answer
179 views

What is the C# Arcobject I must use in order to set programatically the SQL Query of an LYR file?

I would like to change programatically the SQL Query of a LYR file. I'm developping in C# using ArcObject. Actually I'm able to get an instance of IWorkspaceFactory from an opened layer with this ...
2
votes
2answers
129 views

How to get current application culture using ArcObjects? [closed]

Without looking at the registry, is there a way to get the current application culture in C#? I have a Add-in and want to get the language from the ArcMap hook using ArcObjects 10. (I'm using C# to ...
0
votes
0answers
31 views

feature class cannot be displayed on a map

I'm running ArcGIS server 10 on windows 7 machine. I'm trying to develop a web application using Silverlight and c# in Visual Studio, but when I execute the application in the browser, there is only a ...
2
votes
1answer
142 views

Delaying load of ArcMap Addin extension?

For configuration reasons, I want to delay the load of my addin extension until ArcMap 10.2 has finished. If there a property, flag, listener etc I can get a hook to do a check if arcmap is done?
1
vote
1answer
101 views

ArcObjects ExcelWorkspaceFactory Won't Release Excel File

I'm working with ArcObjects to set up a batch import from xls and csv files into a geodatabase. That part works fine, but after the import, I want to delete the file. This, however, doesn't work, ...
1
vote
0answers
79 views

Telerik ajax RadMap

I am using telerik RadMap with client side binding in the OnInitialize client event. Copied from the examples: function OnInitialize(sender, args) { var originalOptions = args.get_options(); ...