C# is a .NET programming language.

learn more… | top users | synonyms

1
vote
1answer
9 views

ArcGIS 10.1 make Form onTop with C#

I have a windows form which opens with my ICommand, referenses IApplication and does some staff with it( it is not relevent ). The problem is that I want it to be onTop within ArcMap, and minimized if ...
0
votes
2answers
34 views

Reading a raster map cells values in C#?

Suppose I have a raster map file (TIFF, TGA, JNG... etc) loaded with geo-info manifested by the cells values. I need to read the values of the raster map cells "programatically" in a C# program. P.S: ...
3
votes
1answer
33 views

Convert Sql Server Spatial data to GeoJSON & plot on map

I have a sql server table with Geo spatial data. An example of row would be (with Column names): type: streetline code: 231001 geog: 0xE6100000011 ........ Centroid 0xE61000000C....... geom: ...
0
votes
1answer
34 views

Export data from .mxd file to ms sql database

I am using ArcGIS product (v.10.1). I have also tempalte of Maps from ArcGIS. But i need to get data from maps (.mxd files) to store it into MS SQL database. Explanation: I have application that has ...
1
vote
1answer
55 views

How to find nearby objects using Easting and Northing range

I have a bunch of objects which have associated Eastings and Northings in format OSGB36 for example: 265397 869562 547297 179002 If I have a starting Easting and Northing, and wanted to find ...
0
votes
0answers
24 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
39 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 ...
0
votes
0answers
39 views

Looking for WFS component for c# client

I have to retrieve data from FME server for use in a C# project, and thought that WFS would be a good format, since it has native support in FME and returns features and geometry. However, I can't ...
1
vote
1answer
30 views

How to tell when a new MXD is opened

I am trying to force a tab from a tab container to open to a specific tab once a new MXD is opened. Currently it will stay on a previously selected tab when I use the catalog(docked) to open a new ...
0
votes
0answers
25 views

Reducing point numbers in a certain area

We have a list of poi data in our database(Access mdb db), and we have a web service which serve data by a specified BoundingBox. However we found that the returned points are too close to another at ...
0
votes
0answers
35 views

ArcGIS Engine, How to change IMarkerSymbol size in runtime?

I'm using ArcGIS Engine 10 with C# Winforms to visualize some elements on a globe control. All elements are of type IMarkerElement which have symbol of type IMarkerSymbol. Now I want to add two ...
1
vote
1answer
42 views

ESRI License Initialize & Binding Failure

Despite following guidance about how to first bind, then initialize a licence for a standalone WinForm uses some arcobjects, I still get the "80040111 ClassFactory cannot supply requested class" error ...
1
vote
0answers
45 views

Trilateration issue

My program isn't making use of any geographical data, but I'm hoping that the users experience in the subject can help me with my current issue. The project I am working is trying to locate a user in ...
2
votes
1answer
43 views

how to transform DB stored EPSG data to Geography data type in sql server

I have a full, 3 GB, database in SQL Server stored with certain points stored in pure float values. The points are stored in EPSG 3765. I would prefer to have them saved in the Geograpy datatype. I ...
1
vote
1answer
54 views

I have an ArcObjects 10.1 c# toolbar working, but when I add an addin extension to project the Startup function is never hit. why?

I have created an Esri Addin toolbar in VS2010 to add layers and search an address file, this works fine. I want to add an extension that will replace text on a template MXD with the current users ...
0
votes
1answer
47 views

Creating Network Dataset programatically

I'm trying to code to create a network dataset using a single line feature class with minimal attributes I'm looking for a nice tutorial which can guide me through the process.I have already looked at ...
0
votes
1answer
34 views

How to list all of feature class in SDE?

I am getting a problem: my SDE contains some feature classes, but after using the statement: var namesEnum = workspace.DatasetNames[esriDatasetType.esriDTFeatureClass]; var tempName = ...
0
votes
1answer
31 views

How determine data type of points in geotiff DTM?

I have some DTMs in geotiff files. I need to read them in C# and I've decided to use libtiff for that purpose. After some investigations, I've found that there are tiled tiffs, so I use ReadTile ...
2
votes
2answers
37 views

INSPIRE XSD schema definitions

I was looking for INSPIRE XSD schema definitions in the Web, but nothing found. Only something like THIS. But that resource is "a little" messy... I wanted to use xsd.exe to autogenerate C# classes ...
0
votes
0answers
19 views

return to newline arcgis/arcSDE/postgres labeling

i have two tables : parcel and owners with many to many relation ship so i want to print owners name in my parcels (type polygon), so i coded using .net a function that create field in parcel ...
0
votes
1answer
44 views

Sort Grid binded to ArcDataBinding.TableWrapper in ArcObjects 10.1

I have a Datagridview which is binded to a ArcDataBinding.TableWrapper. So, I want it to be sorted when ColumnHeader is clicked. I tried to do the following on Click event: ...
1
vote
0answers
42 views

How to simplify a self intersected / self overlapped polyline using ArcObjects?

I have a self intersected polyline, how can I break it into 5 records stored in the same table using arcobjects? (splited by vertices and the intersection point) Here is what I have got and it ...
0
votes
0answers
26 views

Invalid spatial reference Error

I am getting the error: Invalid spatial reference. Spatial reference must match map's spatial reference. Clear the map layers collection prior to changing the spatial reference when I try to ...
0
votes
1answer
69 views

Geoserver with Openlayer map showing problem

I have a Geoserver runnning at 8888 port and url is http://localhost:8888/geoserver. I can browse any layer created by my custom data. ...
0
votes
1answer
31 views

Get the vertices on a LineString either side of a point (Sql Server 2008)

I have a point that sits on top of a LineString, both Sql Geometry types. POINT('0.5 0.5') LINESTRING('0 0 NULL 1, 1 1 NULL 1') I want to find the vertices of the LineString that lie either side ...
0
votes
0answers
41 views

Function of query.Like

I was wondering how ESRI's query.Text works. From what I read, it is basically the shorthand for the LIKE SQL statement, but it is not working. Maybe I am misunderstanding it's use? Any help is ...
1
vote
0answers
30 views

Find Nearby GPS Navigation Route

I am developing a car pooling website. For that, I have created the database which has the different route options selected by different user. These routes are saved in the Database as Geography ...
1
vote
1answer
85 views

IFeatureLayer.Seach() throws exception HRESULT:0x80041538

My code as bellow give error HRESULT:0x80041538 whenever I use GROUP BY or ORDER BY postfix. Trying in Personal(.mdb) and MSSQL database datas - same result. What can be the reason. Asked similar ...
0
votes
0answers
41 views

Why is Freehand Spatial Query in ArcGIS for Server not working?

I have been using the Spacial Query tool from ESRI to implement more functionality into my GIS application. The query works for a square, circle, and oval; but it does not return anything if the user ...
3
votes
2answers
53 views

How to programmatically Summarize an ITable?

Is there a way in ArcMap plugin to make Summarize-function like functionality programmatically? There is a feature layer, lets say Building, And it has fields like OID, FloorNumber, Color, Height ...
2
votes
1answer
147 views

Adding a point and then saving it to the server

This seems like a fairly simple thing to do, but I am not exactly sure how to complete it. I use ArcGIS for Server. I have all of my data for my feature layer on that database. The point is being ...
0
votes
0answers
59 views

GPS tracking in ArcGIS Engine application

Is there an ArcGIS api for ArcObjects /.Net that I can use to build a function in an ArcGIS Engine 10 application that allows me to track a GPS signal and display the movement plus lets me export and ...
1
vote
0answers
20 views

IApplication.Shutdown rights problem

In ArcGIS 10.1 using Add-In, IApplication.Shutdown works fine on my PC, but when I install it on other computer it give error, something like "Not enough rights to close the application". The ...
0
votes
0answers
32 views

Change the Name,Tooltip of builtin Commands

When I change the name of a builtin command using the following code, I get the error, "this method cannot run on builtin commands". ICommandItem BuiltinCMD = ...
0
votes
1answer
127 views

GDAL WMS Question

I'm new to GDAL and am currently trying to hit a WMS using gdal. I need a way to save the image to my desktop. I currently have an xml file with the WMS description syntax that gdal wants -> ...
2
votes
2answers
60 views

Looping through nested IGraphicsContainer

I'm looping through the IElement objects in an IGraphicsContainer and need to get the properties of another IElement by name. I thought I could write a getElementByName function to loop through an ...
0
votes
1answer
71 views

Programmatically block Toolbar choosing in ArcMap 10.1

With an extension I can block ArcMap's Customize menu using following code line: ArcMap.Application.LockCustomization("password"); But, it makes no sense since by right-click on Toolbar docking ...
0
votes
1answer
79 views

Mysterious Data loss after compressing SDE database

I suffer sometimes from data loss in SDE database exactly after compressing database. i mean by data loss that some data remains in its prior state before edits, but this problem do not affect the ...
2
votes
4answers
200 views

How to take 2 points from One featureClass, create a line between those points, and add the line to a new featureClass (aka Shape File)?

I'm a total noob/beginner in ArcObjects. I'm coding in C#. I want to extract 2 points from a given featureClass, create a straight line between those 2 points, create a new feature class and add ...
0
votes
0answers
61 views

ArcMap throws NullReferenceException for OnClick event of Add-In

I have this below code which is a toolbar button to open a dock able window in ArcMap 10.2 Desktop application and what happens is that I am able to install the toolbar button but when I a click that ...
0
votes
0answers
28 views

How to access input parameters (layer name,field name) in rest SOE?

I want to access input parameters in my SOE(Server object extension) code which I am writing in arcobjects using C#. I have constructed the complete URL(including layername id and field name) for ...
0
votes
0answers
61 views

Feature To Polygon by Attribute

Hey everyone How are things? I am having a problem getting my head around an efficient way to create polygons from polylines using an attribute. I would like to get some pseudo code, suggestions as ...
0
votes
0answers
48 views

Display DEM in WPF application

In my application which is based on .net4/C#/wpf, I need to display a decent sized terrain file (eg. GeoTiff). It is an elevation file which should be viewed in 3D. The user should be able to draw ...
1
vote
1answer
107 views

Why is my OnChangeFeature event not firing in my parcel fabric editor extension?

I have an edit extension that listens to events that happen during an editor session. I have wired it like so: void Events_OnStartEditing() { //Since features of shapefiles, ...
1
vote
1answer
119 views

How to Plot Every Other Address on Street?

I have no idea if this is even possible. We run a Utility software company and need to know where to put the leak sensors. The sensors are put at either every other house or every two houses depending ...
0
votes
0answers
32 views

How do I debug a GP Service in ArcServer?

I have a geoprocessing service that was successfully published to our ArcServer instance. I'm using 10.1 which means we could not publish unless it actually worked run as a tool in ArcMap. But now ...
0
votes
1answer
28 views

How do I create an IFeature object from an IPolyline or ILine object

I am having some problems with some code i am trying to write. The application i am creating allows the user to click on the map and a point will be createD, when they click again to create another ...
0
votes
0answers
26 views

Error: already exists.(stg_e_filealreadyexists) when using IMapDocument.Open method?

I got the errror: already exists.(stg_e_filealreadyexists) when using the method IMapDocument.Open() as below codes: if (File.Exists (strDirectory + "\\temp.mxd")) File.Delete(strDirectory + ...
1
vote
2answers
61 views

Conversion of raster to polygon

Using C# and ArcObjects, what is the recommended way to convert a raster file into a polygon. I need this for calling the Near tool so that I can move a station which may be inland to the nearest ...
2
votes
1answer
62 views

How to get cell size of raster shown in ArcMap using ArcGIS Engine and C#?

As the figure shows above, after classifying the raster, we can get the cell size by opening the raster Properties to its Source tab, and we can calculate the area by mutiplying the cell count and ...