Hot answers tagged

9 votes
Accepted

Find crossing point of polyline layer

I think I know what you mean, you should do that by 2 tools step by step first step find in arctoolbox intersect (Analysis) and then create intersect point layer in Intersection tools window choose "...
user avatar
  • 791
8 votes

Remove lock on feature class

A file geodatabase has 3 types of locks. SR - schema lock RD - read lock ED - edit lock The proposed solution by @StacyR will work in all situations except for exclusive edit locks (ED) according ...
user avatar
6 votes
Accepted

What is ArcGIS Pro .NET SDK?

It is a replacement ArcGIS Pro .NET SDK: The Road Ahead – SDK and API No need for “external” PIAs (primary interop assembly) like with Arcobjects. Simply install ArcGIS Pro. This is the fully fledged ...
user avatar
  • 48.5k
6 votes
Accepted

Get messages from erroneous python script run in C# .NET with ArcObjects

To get the messages in the catch block, the gp variable needs to be accessible outside try. You could also use finally if you want to get the messages regardless of success. IGeoProcessor2 gp = new ...
user avatar
  • 4,164
5 votes
Accepted

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

I think the beta doc might be a little out of date. I was told to look at the factory methods. (MapFactory.Create, ItemFactory.Create, etc which will be the way to go when the SDK is released at 1.1) ...
user avatar
  • 15.2k
5 votes
Accepted

Get information from a tool in ArcObjects

Just looked at some old code and the way I did this is: My form was actually a dockable window, not sure that makes a difference? In the New() event of the window I get a handle on the tool and then ...
user avatar
  • 38.5k
4 votes
Accepted

Accessing arcpy functions from IronPython

At the Esri Discussion Forums I found a 2011 response from @JasonScheirer which says: Arcpy is built on arcgisscripting, which is in turn a CPython extension. You will not be able to use arcpy in ...
user avatar
  • 63.7k
4 votes
Accepted

Issue with initializing ArcObjects Interface and classes

I had this problem in Visual Studio 2010, when you included your error message it came back to me. The answer can be found here : https://stackoverflow.com/questions/2483659/interop-type-cannot-be-...
user avatar
4 votes
Accepted

SHP File to .NET Conversion

I would recommend displaying your data using SVG (xml based vector image format). There are tools available to convert shapefiles directly to SVG format, which you can then embed directly on your ...
user avatar
  • 1,178
4 votes

ArcObjects .NET - How to close/release FeatureClass, Workspace, Factory

You have already covered many aspects in your post. However to expand on your question, always follow this pattern: if (obj!=null) ESRI.ArcGIS.ADF.ComReleaser.ReleaseCOMObject(obj); obj = null; ...
user avatar
4 votes
Accepted

Do I need to explicitly release extension licenses?

According to the help docs, it is probably safest to do both by explicitly checking the license in with the extension code and then calling lic.Shutdown() depending on how you're checking out the ...
user avatar
  • 8,354
4 votes

Is MapGuide still maintained?

Yes, MapGuide is still maintained. We do new major releases on a yearly basis, with minor point releases as the need arises. Source: Me, I do the releases for MapGuide Open Source
user avatar
4 votes
Accepted

OpenLayers vector tile rendering problem on .NET Core 2.2

SOLUTION I was responding to the browser as bytes return (byte[]datas); so i change response type to File and works fine return File(datas, "application/vnd.mapbox-vector-tile");
user avatar
  • 61
4 votes

Is there a proj4 string for GDA2020 (epsg:7844) that we use to transform from 3857 or 4326 to gda2020 using dot spatial .net library

I used the proj.4 declaration provided by JohnGom here: Proj.4/GDAL/QGIS Transformation between CRSs that are defined the same +proj=longlat +ellps=GRS80 +towgs84=-0.06155,0.01087,0.04019,-0.0394924,...
user avatar
  • 41
3 votes

Building x64 SQLite with spatiaLite?

You can download the spatialite binary from http://www.gaia-gis.it/gaia-sins/windows-bin-amd64/ You can download the .net assemblies from http://system.data.sqlite.org/index.html/doc/trunk/www/...
user avatar
  • 12.5k
3 votes

What are pros and cons of Python add-ins vs .NET add-ins to ArcGIS for Desktop?

One of the disadvantages of developing Add-Ins in .NET is that each new version of ArcGIS uses a different incompatible version of ArcObjects and a different incompatible version of Visual Studio. ...
user avatar
3 votes

Is it possible to use DotNet to show a QGIS map?

It is possible to create embed a map on any kind of Web Application, without any server-side technology. There is a plugin called QGIS2Web which is a great way to publish GIS data and make it ...
user avatar
3 votes

Grib2 Libraries For .Net

GribApi.NET is now freely available. It supports reading and writing GRIB 1 and 2 files. Disclosure: I am the author of the C# wrapper.
user avatar
  • 131
3 votes
Accepted

Convert Feet to Decimal Degrees

There is a similar formula described in this Esri forum post (for Washington State rather than Florida), so it is certainly a problem that's been addressed for a range of locations. The post refers to ...
user avatar
  • 8,906
3 votes
Accepted

Can Python toolboxes be used with ArcObjects GeoProcess.AddToolbox?

Yes, .pyt toolboxes work just as well as .tbx toolboxes. Be aware that parameter mismatches will cause the HRESULT E_FAIL message instead of something meaningful being returned (that's what was ...
user avatar
  • 257
3 votes
Accepted

Map widget in .NET application

I am not really sure if you mean ASP.NET, or really a .NET Desktop or even mobile Application, but I assume you mean the latter ones, as you already will have a clue how to insert a Leaflet Map into a ...
user avatar
3 votes
Accepted

ToolStrip Button click event is not fired on first click

I found a work around to this by using Rick Brewster's suggestions. First, I modified Rick's class by adding a constructor public ToolStripEx() : base() { } Then in my dockable window's designer class ...
user avatar
3 votes

ArcObjects: ExportOperationClass causing error and not exporting

In your code you have: pWorkspaceName.PathName = "C:\\Users\\username\\Documents\\ArcGIS\\Default.gdb"; pWorkspaceName.WorkspaceFactoryProgID = "esriDataSourcesFile.ShapefileWorkspaceFactory"; As ...
user avatar
  • 38.5k
3 votes
Accepted

ArcObjects: ExportOperationClass causing error and not exporting

First note that IExportOperation interface doesn't export featureclasses or tables that containt a BloB field. So if a blob field exists in your featurelayer you should use "...
user avatar
3 votes
Accepted

.net arcobjects retrieve user value from layer data source

I think you are asking for the username of a layer's SDE connection. You need to use IWorkspace and IPropertySet. Something like this: Dim pDataset As IDataset = the feature layer/raster layer you ...
user avatar
  • 2,358
3 votes
Accepted

Finding point with highest elevation in area using ArcObjects?

Thanks to Vince's comments I was able to perform succesfully the whole process. As I wrote, first I wanted to establish a number of AOIs on the raster. Nothing fancy here, I got raster properties by ...
user avatar
  • 375
3 votes
Accepted

Getting point from known points to specific distance of polyline using ArcObjects?

One way would be to use ICurve QueryPointAndDistance to and get the DistanceAlongCurve value for your 'B' point. Then call ICurve.GetSubcurve twice (with the DistanceAlongCurve + 2 and ...
user avatar
  • 14.4k
3 votes

Intersect tool of ArcGis gives multiple intersecting points

It's giving you 4 points because four lines end at that point. You can use the "Delete Identical" tool and chose the SHAPE field so that it removes all but one of the points as in my example below.
user avatar
  • 472
3 votes
Accepted

Is there a way to use wms like a tiled map service in sharpmap?

Not sure what you mean, either an ordinary tile layer (1) or a WMS accessed through a tile protocol (2). In both cases you could use BruTile. 1) SharpMap uses BruTile for its tile layers. You could ...
user avatar
3 votes
Accepted

What events are fired when a feature is copy and pasted?

Going off help provided by Kirk Kuykendall, I came up with the following solution. I wanted to post it here as a c# alternative to this post. It assumes you are already listening for OnStartEditing ...
user avatar
  • 5,727

Only top scored, non community-wiki answers of a minimum length are eligible