Questions tagged [.net]

A framework, developed by Microsoft, that compiles any of several COM-based programming languages into machine-executable language.

58 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
157 views

Is IGraphicTracker leaking memory?

It seems that when geometries are removed from an IGraphicTracker instance, the geometries remain in memory until IAoInitialize.Shutdown() is called. I have tried removing the geometries by calling ...
5
votes
0answers
448 views

ESRI ArcObjects and Unit Testing the Geoprocessor dll

I have an issue with using ArcObjects and the Geoprocessor .dll library in a UnitTest environment (MSTest) in Visual Studio. When I test a program that creates an ESRI.ArcGIS.Geoprocessor object and I ...
4
votes
0answers
1k 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 ...
4
votes
0answers
456 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 = (...
3
votes
0answers
345 views

How to create tiles from c# code

I need to create tiles directly from c# code. The input file is in *.tif format. Is there a way to do this simply? I tried GDAL, but I found it complicated, I don't understand how to cut tiff into ...
3
votes
0answers
1k views

How to create a Polygon around a Linestring as a GeoFence in C# .NET

I'm looking for a .net library that will help to create a polygon that I can use as a Geo-fence around a route on a map. The following image demonstrates the result I'm after. Imagine that this ...
3
votes
0answers
574 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
363 views

IUniqueValueRenderer on Polyline and Points made my Features all invisible

I am currently using IUnique value renderer like this: foreach (string nodeType in nodes) yield return new KeyValuePair<string, ISymbol>(nodeType, CreateNewSymbol() ); public static ...
3
votes
0answers
762 views

How to return FeatureLayer from gp service(using custom function tool) (.NET)?

My basic problem is that I have a custom function tool HLZCalulation that I created. It takes in a string to a file gdb , opens it, does some calculations, and then returns a featurelayer with the ...
3
votes
0answers
323 views

How do I Convert from LayerDescription.SelectionFeatures to GraphicsLayer?

How do I convert (in a clear and concise way) from ESRI.ArcGIS.ADF.ArcGISServer.LayerDescription.SelectionFeatures to ESRI.ArcGIS.ADF.Web.Display.Graphics.GraphicsLayer I want the selected ...
2
votes
0answers
167 views

ESRI Workspace Domains sometimes not implementing ICodedValueDomain2

I am attempting to use the .SortByName() and .SortByValue() methods of the interface ICodedValueDomain2. I use the same extension methods from an IWorkspace, however if I open the IWorkspace from an ....
2
votes
0answers
44 views

3D wkt geometries - Parse in .Net suggests alternate form

I am having some issues with a built in .net framework class (System.Data.Spatial.DbGeometry in assembly System.Data.Entity). It turns out that this class cannot parse 3D geometries when they are ...
2
votes
0answers
1k views

Transformation from local projection to WGS84

I'd like to reproject point that is in local coordinate system to the WGS84, using gdal. But exception "No PROJ.4 translation for source SRS, coordinate transformation initialization has failed" ...
2
votes
0answers
67 views

TOC layer symbol changed EVENTS in ArcMap

I want to do something when user changes one of TOC layer's symbol. I am using .NET in arcMap 10.0 . How can it possible with ArcObjects ? Is there any events that will fired when user change symbol ...
2
votes
0answers
80 views

Is there a way to change the selection in the Editor Attributes window, while maintaining current selection?

I was wondering if anyone knew of a way to alter the selection within the Editor Attributes window while maintaining the current selection set. In the image below, I've manually selected an item in ...
2
votes
0answers
234 views

ArcGIS .Net GP tools debug

I'm developing a GP Tool with .Net ArcObjects SDK. I would like to debug my GP tool but I haven't figured how. I have tried to enable background processing in Geoprocessing Options and attach ...
2
votes
0answers
114 views

Understanding lifecycle of .NET geoprocessing tools on ArcGIS for Server?

I've done a number of .NET geoprocessing tools for ArcGIS 10.1 that get published as geoprocessing services on ArcGIS Server. Lately we've seen behavior that makes me question something I thought I ...
2
votes
0answers
832 views

GeoPDF Library for .NET or JavaScript

Anyone know of any open source .NET or Javascript libraries for creating GeoPDFs? I know of QuickPDFLibrary, but i'm preferably looking for something open source. I want to programmatically generate ...
2
votes
1answer
840 views

How do I read the attribute data associated with my SHP?

I'm using DotSpatial to aid in processing some geospatial data. I'm using the code below to determine if a point (lat/lon location) is within a polygon contained in the SHP. If the point is in a ...
1
vote
0answers
11 views

GeoJSON: Truncate geometry based on circle

I have a database with a lot of GeoJSON, mostly representing roads and buildings. This GeoJSON is displayed on a map based on a chosen location, i.e. you choose a point on the map and the roads and ...
1
vote
0answers
37 views

Problem reprojecting coordinates using DotSpatial

I'm trying to reproject some coordinates from EPSG:27700 to WGS84. I can do this fine in JS using the proj4 port, but I'm getting different results using DotSpatial. Here is my .NET code: var wgs84 =...
1
vote
0answers
59 views

Convert OSM data to PostGIS polygons in .net?

I'm trying to obtain data from OSM and store it to a PostgreSQL + PostGIS database, with certain modifications to adapt to our tables. Is there any built way to convert OSM relations/ways/nodes into ...
1
vote
0answers
213 views

'object' does not contain a definition for 'AddValue'

I have been able to get past this error, but I don't know why it was happening. I'm attempting to set symbology on a layer using IUniqueValueRenderer in ArcMap 10.4. When I try and use the AddValue ...
1
vote
3answers
260 views

Why does DotSpatial return NaN for point reprojection?

From the master branch and examples @ https://github.com/DotSpatial/DotSpatial the following fills the xy array with NaN but we expect 1755668,5922511 Dim x As Double() = {2666109} Dim y As Double() =...
1
vote
0answers
30 views

arcmap ExportFrame on FocusMap inconsistency

I have an issue where the ExportFrame would use the extent instead of the full extent after right clicking on arcmap and selected "Full extent". Sometime it will use the ExportFrame of the full ...
1
vote
0answers
30 views

How should I properly release .NET extensions I create?

This is an extension to the following question: ArcMap.exe processes stay open after closing ArcMap? None of the answers go into how to properly write your extension so that it releases when ArcMap ...
1
vote
0answers
4k views

QGIS with c# or vb.net

Can I add QGIS as a Plugin in .net application and access it using c# or vb.net? As I can see QGIS plugins are consumed using C++ only.
1
vote
0answers
879 views

GDAL compilation to .NET (C#) use

I want compile GDAL library for use in C# program. I use Microsoft Visual Studio 2013. First, I compiled GDAL C++. As a result I have DLLs and libraries (No problems) . Next, I tried to compile with ...
1
vote
0answers
209 views

Call dot net library function from python in QGis

I have created one custom library (.dll) in Dot net. Now, i want to use that dll in my QGis plugin. How i can integrate that? For an example i have one function in library which is used to read excel ...
1
vote
0answers
486 views

Web Tier Authentication in ArcGIS for Server?

Can anyone explain me the steps, how to view map service from LDAP ,Web Tier Authenticated ArcGIS Server 10.2.1 in .net Application. I have installed web adapter in Web server with windows ...
1
vote
0answers
112 views

Converting Map Files to KML Overlay

Had a quick look around and didn't quite see what I've been looking for. I've got a .Net Web Application that is going to accept different map files and I want to convert everything over to KML so ...
1
vote
0answers
257 views

Subtract two rasters with Raster Calculator in ArcObjects (VB.NET)

I'm having a hard time subtracting two rastera with ArcObjects sdk 10.1. I keep getting a null reference exception at the gp.execute() method, but I can't figure out where the problem is, I recall ...
1
vote
0answers
304 views

The underlying connection was closed: The connection was closed unexpectedly. AOInitiliaze

I create a WCF Service. When I try to Initialize ArcGIS License with AOInitialize I get error: The underlying connection was closed: The connection was closed unexpectedly. public void ...
1
vote
0answers
327 views

ArcGIS SDK for .Net (used in WPF): update map's zoom parameters after changing base layer

I'm having the following issue: Suppose I have a Map object and 2 base layers (a world map and a street map). A world map doesn't let us view the map too closely. The street map allows us to view as ...
1
vote
0answers
71 views

How to run a 2.0 ESRI DLL in a 4.0 Addin application

We have a complex set of operations running as Add-in's and services that span both ArcMap, ArcServer, and ArcGIS Explorer for Desktop. Currently we are compiling everything under .NET 3.5 but we may ...
1
vote
0answers
2k views

How to resolve an InvalidCastException for two Objects of the same type in an ArcMap AddIn?

I'm trying to work through an InvalidCastException that is being thrown when a form is displayed from an ArcMap Addin. This is a fairly recent occurrence and I haven't identified what has changed that ...
1
vote
0answers
3k views

How to cut polygon or split polygon using polyline and ArcObjects?

I have ArcMap10.1 and ArcObject.net. i have created tool and on mouse down event i write some code I tried it using topologicalOperator4.Cut2(newPolyline) but i get error "A polygon cut operation ...
1
vote
0answers
56 views

ExecutionEngineException using ArcGIS 10.0 extension recompiled for 10.1?

I have a written an ArcGIS extension in C# .Net for version 10.0. I have attempted to recompile this extension for 10.1 and that works. But running the extension in 10.1 is causing ArcGIS to crash. ...
1
vote
0answers
368 views

Are there any exisiting .NET implementations for WFS that are extendable?

I've been told its a bad idea to implement WFS from scratch: Implementing WFS within .NET Does anybody know of any exisiting .net implementations that I can extend?
1
vote
0answers
864 views

How to integrate .NET application in QGIS using Python?

In our company we have developed a .NET application that's now integrated with 3 different GIS platforms. Now we would like to make it work with QGIS but we need some help on getting started. I've ...
1
vote
0answers
323 views

How do I get around license error when creating custom tool?

I created a custom geoprocessing function tool according to this link . . http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Building_a_custom_geoprocessing_function_tool/...
1
vote
0answers
243 views

Map Identify tool in ArcGIS Server 10.1

I tried this http://tereshenkov.wordpress.com/2010/08/16/map-identify-tool-in-arcgis-server/ but it doesn't work on ArcGIS Server 10.1 (.NET Web ADF) :-( Application doesn’t use file MapIdentify.js. ...
1
vote
0answers
232 views

(.NET) Get DTED Data (Elevation) Between Two Points

I want to get DTED data (elevation) between two points (on a line). Is there any built-in function for this purpose or I should implement it on my own? What I want is similar to Linear Line of Sight (...
1
vote
0answers
129 views

Need to create custom map based the spatial Database

I need to create a custom map in .net 2008 c# webapplication based the spatial database(sqlserver 2008) without using any third party tools For example in sqlserver 2008 i am create a map using this ...
1
vote
0answers
441 views

Error installing/uninstalling GeoMedia WebMap Professional_6 on Windows 7 (64 bit)

On installing GeoMedia WebMap Professional_06.01.03.08 on Windows 7 Professional 64 bit. Following Error window pop up at the end of installation process or If I uninstall it. I have .Net Framework 2,...
1
vote
0answers
341 views

Looking for .NET Heat Map API / SDK

I have a requirement to add a 'heat map' style layer to a Javascript/jQuery based application that I am working on. So far, I have used heatmap.js with no problems at all. My only concern with this ...
1
vote
0answers
85 views

Viewing Tables in the AxTOControl using ArcObjects

I was wondering if anyone out there has written a Table filter for the AxTOCControl in the ArcObjects Library. I've rolled my own Table view for now in C#, but would like to try and keep things ...
1
vote
0answers
416 views

Argument is not a com object : null

With ArcEngine 9.3.1 in java (but I suppose, it's the same in .NET), I'm developping an application which loads a mxd file. This file contains about 20 layers with shapefile, JPG's, TIFF's files. This ...
0
votes
0answers
9 views

WSDL & XSD files for WFS and WMS services

I am working on creating a proxy for OGC WFS and WMS services using C#.NET WCF service. For that purpose, I need to create a reference to a WFS service so that I can get its classes and data types (Or ...
0
votes
0answers
36 views

Expose GeoServer Services to openlayers using .NET application

I have came across ways to consume GeoServer wms services and Bing maps at client side using openlayers , But openlayers is Javascript based framework and using this the Bing Map keys/ WMS urls and ...