Tag Info

Hot answers tagged

3

You will want to create a ToolControl button that allows you to click on a map as opposed to a button which does something when you click on it. Then grab the point, create a spatialfilter and query your polygon layer, this returns a Feature object which you can return the various address components and populate some form that you created. The bold words ...


3

Not really no. You only options for QGIS based applications are Python and C++, unless you want to build a web app which calls QGIS server to show the map then you can use what ever you want as it's just making WMS calls to the server. Creating a standalone application with Python using QGIS is pretty easy. Getting started with a standalone app in Python: ...


2

I was able to achieve results as following: public void SaveProject() { UID uid = new UIDClass(); //uid.Value = "{119591DB-0255-11D2-8D20-080009EE4E51}"; uid.Value = "esriArcMapUI.MxFileMenuItem"; uid.SubType = 3; ICommandItem item = ArcMap.Application.Document.CommandBars.Find(uid, false); item.Execute(); } Appreciate your help.


2

It seems you get can get or set the current tool using iApplication.CurrentTool property. See here. Whether or not this works for custom tools I'm unsure.


1

I am going to write this in VB.Net since that is what I know, and hopefully you can figure out the C# way to do it: To find all the layers, use IEnumLayer interface: Dim pEnumLayer As IEnumLayer = My.ArcMap.Document.ActiveView.FocusMap.Layers(Nothing, True) The second argument determines if this drills down into composite layers. To get the layer from ...


1

you sure obtain IApplication/IMxApplication hook somehow in your code then you can obtain IMxDocument pointer and then cast it to IMapDocument: IMxDocument ipMxDoc=(IMxApplication)ipApp; //Suppose ipApp has been obtained via hook passed in OnCreate method of ICommand interface IMapDocument ipMapDoc=(IMapDocument)ipMxDoc; ipMapDoc.SaveAs(fileName); ...


1

Works with this using System; using System.Collections.Generic; using System.Linq; using System.Text; using ESRI.ArcGIS.Geodatabase; using ESRI.ArcGIS.esriSystem; namespace SDEtest { class Program { static void Main(string[] args) { ESRI.ArcGIS.RuntimeManager.BindLicense(ESRI.ArcGIS.ProductCode.EngineOrDesktop); ...


1

As @radouxju says, you have two components of a 3d cartesian conversion. It sounds like you are really looking for a Map Projection. This converts the surface of the Earth (latitude, longitude) into flat 2d cartesian coordinates. It is impossible to do this without some distortion. Hence there are literally thousands of possible projections. You choose the ...


1

the two equations that you are using here are for the conversion to a 3D cartesian coordinate system (for a 3D plot with the origin at the center of the Earth), so you must have the Z-axis, otherwise you will represent the projection of your points on the equatorial plane (which is probably not what you want). public static double GetZCoord(double lat, ...



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