Tag Info

New answers tagged

0

That is one way to do it. How much time / effort do you want to put into it? With a GDAL distribution, you have the code for ogr2ogr. you could peruse that code and figure out how it does the above command, and then add your processing to that C/C++ utility, thus generating your own. you could replicate that processing in C# by calling the .NET bindings and ...


2

In addition to the previous fine answer: polyline.SpatialReference = ArcMap.Document.FocusMap.SpatialReference; ISpatialReferenceFactory3 SRfact = (ISpatialReferenceFactory3)new SpatialReferenceEnvironment(); ISpatialReference SR = SRfact.CreateSpatialReference(EPSG_of_Projected_CoSys); polyline.Project(SR); myForm.myTextbox.Text = ...


2

OK, in the function GetPolylineFromMouseClicks just before the return statement you could do something like: myForm.myTextbox.Text = polyline.Length.ToString I'm assuming the RubberLineClass picks up on the coordinate system of the dataframe. But that leads to another question. If you dataframe is WGS84 then length in decimal degrees is not going to mean ...


0

After spending some time working though Beginning ArcGIS for Desktop Development using .NET, I came back and was reviewing what was going wrong for me. For whatever reason in the code block Michael gave me when I added in a geographic layer the pEnv.YMax and the pEnv.YMin were coming out as the same number, hence the ActiveView.Extent was staying the same ...


0

You are using ArcGIS Runtime SDK for WPF. Actually, there is no MapView object in it. The MapView object is in ArcGIS Runtime SDK for .NET, you will find MapView.MapViewTapped Event in here. Instead, you can use OnMouseDown or TouchDown event in ArcGIS Runtime SDK for WPF.


0

I got this done, I have accessed the symbol thanks all. private void ArrangeCrossSetionView(IEnumSchematicInMemoryFeature containerElements, IGeoFeatureLayer geoFtr, ISchematicLayer schematicLayer) { ISchematicInMemoryFeature feature; while ((feature = containerElements.Next()) != null) { var symbol = ...


0

ST_GeomFromText is used to read Well-known text, so you would need to format a string to pass as a parameter. However, this is one of the slowest way to make a point, and is subject to parse errors of the WKT string (which is the error shown in your question). Use ST_MakePoint, which can directly use numeric parameters. NpgsqlCommand command = new ...


0

in my mind, the major differentiators between those two ESRI platforms are: ArcObjects is not free (as in beer or any other way), you need ArcGIS Desktop, Engine, or Server licenses for deployment. You can't install the ArcObjects SDK without an existing Desktop or Server installation being present. ArcObjects is for Windows Desktop (either ArcMap ...


2

I think this blog post on the Esri site is still applicable: ArcObjects or the ArcGIS Runtime SDKs for Java and WPF—which is right for you? Though this question discusses the Java flavors, it may help as well.


1

I don't think you can access symbology from a single feature . The symbology renderer is defined at the level of the layer. You can set the renderer from the IGeoFeatureLayer, you access this by casting from IFeaturelayer. More info see: ...



Top 50 recent answers are included