Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
C# is a .NET programming language.
2
votes
0
answers
80
views
Setting ID in query as IQueryDescriptions OIDFields throwing error?
I have a layer and the query for layer is a select query consisting of ID field in it. This query is being executed on top of Oracle and its throwing an exception for field "ID" when "ID" field is bei …
0
votes
1
answer
1k
views
Getting Layer DataSource information in ArcObjects with C#?
I have a mxd file with 6 layers. I want to get datasource information for each layer. Please see the code below. I want to know how exactly i should get layer's datasource information
IDocument doc = …
2
votes
Getting Layer DataSource information in ArcObjects with C#?
I have found the answer for my question. Please look at below mentioned code,
IDocument doc = ArcMap.Application.Document;
IMxDocument mxDoc = doc as IMxDocument;
IMap map = mxDoc.FocusMap;
ILayer la …
1
vote
1
answer
427
views
Fetching query from query layer using ArcObjects and C#?
As shown in the image below, I need to fetch query mentioned within query section of a layer using ArcObjects in C#.
IDocument doc = ArcMap.Application.Document;
IMxDocument m …
0
votes
0
answers
233
views
Resetting Layer Extent in MXD file using ArcObjects and C#?
When I change data source properties of a layer using ArcObjects in C#, I lose the extent set for that layer.
How can I reset the layer extent?
Below is the code in which I am resetting database conn …
0
votes
1
answer
264
views
Add-In button Click open ArcCatalog window with list of .sde files
I want code to open ArcCatalog window with list of .sde files.The below code always opens an ArcCatalog window with home location. I have to go to database connections from the window which finally gi …
1
vote
Add-In button Click open ArcCatalog window with list of .sde files
I found the answer. It turns out that there is a class with the name "GxFilterWorkspacesClass()". So if we use this class in the above code like mentoined below its gets the job done.
IGxObjectFilter …
1
vote
0
answers
40
views
Error messages are not getting logged. I have created an Add-In button. I am using log4Net l...
When i run Add-In button project on my machine, logging is being done successfully but as soon as i take the Add-In button and install it into different machine , no logging of messages occurs. Is it …
0
votes
0
answers
330
views
Attribute Table is empty
I am trying to point all layers in MXD files to a different database server. Databse server is Oracle type. Most of the layers consist of views. After changing the datasource programatically for all l …
0
votes
1
answer
823
views
Accessing four extent values of layer using ArcObjects in C#?
How can I access the four extent values of a layer shown in the below image using C# in ArcObjects?
Below is the code that i am using to achieve it but "AreaOfInterest" is null.
public ISpatialRef …
2
votes
Changing Layer DataSource using ArcObjects?
I managed to do it using the below code:
private void ChangeDataSource(IWorkspace targetWorkspace)
{
IDocument doc = ArcMap.Application.Document;
IMxDocument mxDoc = d …
0
votes
0
answers
189
views
Change Layer Field DataType
I want to change data type of a field to type esriFieldTypeOID in a layer. So i copy existing field into a new field than delete existing field first and than change datatype for copied field and than …
1
vote
1
answer
1k
views
Changing Layer DataSource using ArcObjects?
I want to change data source information of a layer. Lets say I have a MXD file in dev env configured with dev environment datasource details like server,database,username,password and I want to use t …