C# is a .NET programming language.

learn more… | top users | synonyms

5
votes
0answers
122 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 ...
5
votes
0answers
244 views

Plugin Workspace: when to close an OleDbDataReader?

I'm developing a plugin workspace for ArcGIS. Internally, the plugin uses an OleDBconnection. All of the sample code I see seems to stress the importance of closing and disposing the connection. ...
4
votes
0answers
104 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 ...
4
votes
0answers
340 views

How to read Geotiff tags and pixel per pixel values using GDAL C#

I'm new here and I'm new at programing with GDAL C#. My question is how I can get the value of SRTM GEOTIFF pixel to compare with it's neighbors, and how can I get the values of Geotiff tags.
4
votes
0answers
233 views

Translate Orientation from Sensor data to Geo location

I am tracking a device that might loose GPS signal then and there. And when the GPS signal is too low, I should use the accelerometer and Gyroscope sensors data to guess which way they should have ...
4
votes
0answers
592 views

How to find layer ID and name from Identify query using ArcGIS Web ADF?

I need to retrieve the layer ID of every layer returned by the IQueryFunctionality.Identify function (I am using ADF with .NET) Identify function spits out a DataTable array for layers which have ...
3
votes
0answers
149 views

converting a distance to a map distance

I have a point and a polyline. I need to find the perpendicular distance between each segment of the polyline and the point. By each segemnt of the polyline I mean that, each polyline may contain more ...
3
votes
0answers
244 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 ...
3
votes
0answers
218 views

What is the correct way to handle assembly resolution in .NET ArcGIS add-ins?

This has been a thorn in my side for some time now -- in .NET ArcGIS add-ins, assembly dependencies packaged with the add-in are often not resolved correctly. I am still not sure why and under which ...
3
votes
0answers
159 views

Closest set of points to another set of (predefined) points

I have 10 sets of points which I call templates that I have manually classified from 0 to 10. Each point is a X, Y coordinate in a text file. Each template has 5-8 points. I have new sets of points ...
3
votes
0answers
390 views

How to change page size of pagelayout for printing custom size?

I have a A3 printer (size: 297mm x 420mm). But I am wanting to print my pagelayout with paper size is: 265mm x 380mm I tried to change the page size of my pagelayout to 265mm x 380mm by using the ...
3
votes
0answers
721 views

leaflet - Drawing line following the road

Short version: What I wish to be able to do is drawing a polyline along part of a road. In that way marking certain houses, along this road. Long Version: I have several houses that I wish to mark ...
3
votes
0answers
139 views

Is it possible to add a command to the ArcMap Find dialog context menu?

I think I already know the answer to this... which is "no", but I wrote this up so I'll ask anyways. Is it possible using ArcObjects to extend/customize the ArcMap Find tool/dialog by adding a ...
3
votes
0answers
98 views

Modify feature: moving or change the shape

When the user make some edit on features on ArcMap, the user can make some changes like moving the feature ,edit the attribute or change the shape. how could i know if the user move the feature or ...
3
votes
0answers
232 views

Alternative to IMapServer2.ExportScaleBar

Does anyone know a good alternative to the IMapServer2.ExportScaleBar function? I want to do essentialy the same task, but outside the ArcGIS Server environment. For a given map scale, predefined ...
2
votes
0answers
72 views

Editing Feature Class using ArcObjects

I have a problem with editing feature class using arc Objects.Indeed I am working on it for a while and cant find any solution into doing it..I asked a question before about how to connect to database ...
2
votes
0answers
64 views

Performance issue with SQLite + Spatialite + C#

I am having a performance issue with SQLite database (.db) which extends to SPATIALITE I am trying to update Geometry of 1,00,000 records in database (.db) which taking around 50 minutes. Too much ...
2
votes
0answers
203 views

Calculate Width and Height of a Google Static Maps Image

Do you know how to calculate the width and height (in degrees minutes) of a Google Static Maps image? I’ve found it extremely difficult. The only information you have is: - The centre of the image ...
2
votes
0answers
73 views

How to refresh a IDockableWindow with a DGV

I am having a IDockableWindow which will display a row of data which is a DATATABLE on DGV. below is my code. Page1.cs: private void toolStripMenuItem_Open_detail_page_Click(object sender, ...
2
votes
0answers
156 views

Can I update the service on ArcGis Server programmatically?

There is Windows Service. This service adds user raster data to the Raster Dataset in sde database. The Raster Dataset registred on the ArcGis Server. This Raster Dataset also was publishing on ...
2
votes
0answers
349 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 ...
2
votes
0answers
207 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. ...
2
votes
0answers
306 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 ...
2
votes
0answers
428 views

How to copy a feature class within the same GDB

I'm trying to copy/clone a feature class within the same file gdb using C#. I've figured out that this won't work with IDataset or IFeatureDataset. So far I only found IGeoDBDataTransfer.Transfer but ...
2
votes
0answers
173 views

Processing arcobjects cursor is taking long time

I am maintaining a code on arcobjects 10.1, and there is a bug happening. I have a code that is parsing through a cursor, and generate a where clause statement to run it on a second query. So the code ...
2
votes
0answers
131 views

Ogr: How to add layer description to dgn?

I have created a dgn-file using Ogr, but can't find a way to fill out the description for this layer programatically. (something like _dgnLayer.Description = "Highways") opts.Add("SEED=" + ...
2
votes
0answers
209 views

AxSymbologyControl via WindowsFormsHost in WPF (ArcMap Add In Project)

I need a way to offer the user a choice of color ramps for the ClassBreaksRenderer. I came across the AxSymbologyControl which was designed for WinForms. I tried also ESRIs (WinForms) example project ...
2
votes
0answers
259 views

Creating a new map frame: Error HRESULT E_FAIL has been returned from a call to a COM component

I am trying to create a new map frame in the PageLayout Control. But I got the error: Error HRESULT E_FAIL has been returned from a call to a COM component at the method AddElement. Please see ...
2
votes
0answers
116 views

How to print two pagelayout on two sides at the same time ?

I am having a PageLayoutControl with name: PageControl1. I used below codes for printing it: public override void OnClick() { try { PrintDialog ...
2
votes
0answers
204 views

How to set the font size of ITextElement if only know Height of the text?

When I read text elements from a .dgn file. I only can get the "height", "length" attribute of the text (it doesn't have a "size" attribute) (example: total height = 0.9; total length = 8.6). I need ...
2
votes
0answers
268 views

Store elements of Imap into BLOB fields using IPersistStream

I have an IMap (include elements: text, line) and I want to store it into a field of a table in SQL, so I can load it again later. I used below codes, but I got an the error : public class Test { ...
2
votes
0answers
527 views

Using labels/attributes from arcMap to display information

I am wanting to take the labels/attributes that are used in arcMap and display them in an InfoWindow when the user clicks on the map point. I really have no idea where to start on this so any help ...
2
votes
0answers
91 views

Map Package is not showing points on map

I am fairly new to GIS, but I am working on an interactive legend and I need to just be able to add a map package to the xaml and it place the points on the map. The legend seems to be working. All of ...
2
votes
0answers
209 views

GAUL: Genetic Algorithm Utility Library has anyone use it in a C# solution?

The GAUL library is the library used for Pgrouting to do some of its functions. Has anyone use this library in a C# solution? If you do, do you have the wrappers needed for this or could you point ...
2
votes
0answers
236 views

How can I free esriControls.ControlsSelectTool? Or is it leaking memory?

In my application I have isues with unfreed memory. After several tries I broke down the problem to a simplified WPF project. It opens a simple System.Windows.Window with a Button, which starts the ...
2
votes
0answers
143 views

Why does a tool not call its constructor or OnActivate() method?

I'm working on an add-in for ArcMap 10.0 in .Net version 3.5. It was finely added in arcgis desktop 10.0 as addin tool and working finely. I added some code in the addin project and build that ...
2
votes
0answers
512 views

Implementing custom IRenderer for ArcGis 10.0/WPF

EDIT: Updates in the bottom As a followup to my earlier question, I'm trying to implement custom symbol rendering for my WPF/ArcGIS application. I'm accessing layers that have been published on the ...
2
votes
0answers
122 views

Proper disposal of layers

I have a group layer. Its purpose is to show feature layers over a base map. Those feature layers are logically grouped into categories and we provide the ability to add/remove whole categories ...
2
votes
0answers
473 views

Intersection problem: too many elements?

I have this code where an IGeometry shape (4-5 circles not filled) should be intersected with another layer's features // Convert from IGeometry to ADF Geometry Polygon ...
2
votes
0answers
360 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
535 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
0answers
395 views

How to read a .GPB file in C#?

I have a .GPB file, I need to extract the common GPS data from it but I don't find a clear structure that specify the contents of that file. as a sample record from file 00000260 02 11 A9 61 E7 96 ...
2
votes
0answers
312 views

How to Create Custom ZoomIn Button that is Windows Tools Button with Custom Cursor?

I want to create large zoomin Button without toolbarbutton. I created a 'Zoomin Script' on axMapContorol. It worked is fine but I can't set cursor. My code is as follows: IMapControl3 mapControl = ...
1
vote
0answers
7 views

How to open an output set that is a list of double values in a geoprocessing service

we are trying to reduce the amount of data we are returning from the server by eliminating returning a polyline and instead returning a collection of values of type GPDouble. When the transaction is ...
1
vote
0answers
31 views

Converting MDB File With Unicode Characters

I'm using C# wrapper of GDAL and I'm having a problem converting MDB file that contains unicode characters. Lets take for example conversion to KML file, non-English characters are replaced by '?' ...
1
vote
0answers
28 views

ZoomTo is not working

I have a graphics layer. When the user selects an address from our software I want the map to ZoomTo that address. This works, but the user has to have an interaction for the map first. I thought this ...
1
vote
0answers
29 views

Cannot Find GPTS Object - GDAL C#

UPDATED To clarify my previous post. I have written a small application to convert maps saved as PDF's to PNG files then tile the maps to be used in a webservice. After experimenting with the PNG ...
1
vote
0answers
33 views

ToDataSet() replacement ArcGISI 10.1

I am currently upgrading 9.3 codes to 10.1. There used to be ToDataSet() function in ESRI.ArcGIS.Utility.Converter class. Class still exists in ESRI.ArcGIS.ADF, but ToDataSet function is gone. Does ...
1
vote
0answers
168 views

Trilateration Math Check

I'm trying to crate an indoor trilateration program working off of N BLE objects. Where I have any number of beacons in a room and my ipad can track its location within them to a sub meter degree of ...
1
vote
0answers
92 views

Changing user's password and adding users in Geoserver using REST service

I want to change user's password (e.g. for admin user) and create a new one using Geoserver's REST API. Is this possible? I tried to look for some solution in their DOCUMENTATION, but nothing found ...