Tag Info

New answers tagged

0

The solution in terms of geodesics is given in Section 8 of Algorithms for geodesics. This uses the ellipsoidal gnomonic projection to convert the problem to an equivalent planar problem. An implementation of the solution in C++ is given here. GeographicLib includes the necessary underlying geodesic routines in both C# and Java.


3

It seem you have written an ArcEngine application. So, you must install ArcEngine Runtime on any machine you need to run your application. ArcEngine Runtime is the minimum. You can either install ArcEngine SDK or even ArcGIS Desktop to run you application. The Arc Application (Engine or Desktop), must match the version of sdk that you have built your ...


0

Assuming that you are dealing with geographic coordinates and geographic (true north) bearings, you have a couple of options: Project the situation onto the plane, solve using the simple planar coordinates method, and reverse project back to the spheroid. Perform geodetic or spherical geometry calculations. If your distances are not too great and your ...


2

Assuming that we're dealing with the planar coordinate case (that is not actually what the OP suggested, but I offer this as a better answer to the one given so far – and so far, accepted, by the OP – for the planar case), it helps to first determine the direction cosines from the two clockwise bearings, βAC and βBC, from known points A ...


0

Thanks to Daniel from geonet, the problem has been solved. As far as referencing ValidFacet is concerned, the app needed to be changed from 'void' to 'bool'. Daniel also corrected various problems with ValidFacet so that it is now: public static bool ValidFacet(string facetStr) { IMxDocument pMxDoc = ArcMap.Document; IMap pMap = ...


0

so finally i am able to find it on my own. posting it for new users like me who struggles alot using 3rd party tools. Here i want to confess that there is no direct way of finding the length of the line feature in Dot-Spatial. One need to do it through a hard-way using the basic Distance Equation. Code i used: IRaster r = ...


1

You should use IDataSourceHelperLayer Interface: Code Snippet: IDataSourceHelperLayer dsh = new DataSourceHelper() as IDataSourceHelperLayer; dsh.ReplaceName(pLayer, newIName, false); You can either use IDataSourceHelperLayer.FindAndReplaceWorkspaceNamePath method.


0

Esri's online help, there are examples of this problem, you can refer to this example. URL: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00490000002r000000


1

In ArcMap the MosaicDataset is a MosaicLayer and is essentially a CompositeLayer, and the actual raster image is one of its components. So find the raster in the MosaicLayer and treat it exactly as you did the raster in your first example... Dim pEnumLayer As IEnumLayer = My.ArcMap.Document.FocusMap.Layers(Nothing, True) pEnumLayer.Reset() Dim pLayer As ...


1

That works Farid Cher, but another helpful tip is to use the autoLoad property in the Config.esriaddinx: <Extensions> <Extension id="Microsoft_OnSave_Extension1" class="Extension1" productName="OnSaveExt" showInExtensionDialog="true" autoLoad="true" /> </Extensions> This may not be there by default but it is safe to add, it forces ...


5

You must write an ArcMap Addin Extension. In the extension, listen to DocumentOpened event and from there, show your form. Useful Link To create the extension, use Arcgis visual studio template. Then change SetupEvents method like this: private void SetupEvents() { m_docEvents = ArcMap.Document as IDocumentEvents_Event; ...


0

The MapTiler is tool for creating the map tiles for bing, google maps, leaflet or openlayers. To process the CAD files you may need to save it first as a PDF. If geographic coordinates are used in the CAD then export to GeoPDF. Alternatively you could export the data from the CAD software as an image such as TIFF/GeoTIFF or JPEG. MapTiler will open such ...


0

Where is the problem, simply use this: double lat = 8.654; double lon = 38.123; double[] xy = new double[2] { lat, lon }; double[] z = new double[1] { 1234.5 }; Reproject.ReprojectPoints(xy, z, pStart, pEnd, 0, 1); Console.WriteLine(String.Foramt("New Lat/Lon = {0}/{1}", xy[0], xy[1]));



Top 50 recent answers are included