Hot answers tagged

4

You can add multiple models to a geoprocessing package by running them and having their results preserved within the Results window. Esri Help page: Adding a result to a geoprocessing package When you will click Add Result, all the results of the models' runs will be listed and you can choose the one you need.


3

It is technically possible and doable, but building the new ArcGIS Pro .NET Add-in on WPF is the way to go for ArcGIS Pro customizations. If you are set on embedding WinForms in WPF, you'll use the WindowsFormsHost control. Below are links to articles and walkthroughs that describe developing for ArcGIS Pro using WPF and MVVM, as well as what you need to ...


2

There is a ConstrainExtentBehavior that you can add to the Map. See here. <esri:Map x:Name="MyMap" Extent="-120,30,-60,60"> . . . <i:Interaction.Behaviors> <esriBehaviors:ConstrainExtentBehavior ConstrainedExtent="-120,30,-60,60"/> </i:Interaction.Behaviors> </esri:Map> You can get the extent of your layer and ...


2

Please, do not use with geographic coordinates. x axis is North oriented, so x = Northing y axis is East oriented, so y = Easting azimuth is the clockwise angle measured from x axis, in radians. (all three are topographical conventions, you must transform the following formulas if you want to use another system) x_0 and y_0 are the coordinates of ...


2

when you create the feature layer be aware that you set the properties DisableClientCaching = true, AutoSave = false, Mode = FeatureLayer.QueryMode.Snapshot then it will be save the edits with: graphicsLayer.SaveEdits();


1

I think that you are adding lat1 (decimal degrees) + lat2 (radians). lat2 and lon2 are final latitude and longitude in radians. Just convert them to degrees. UPDATE: I don't know the language, but must to be something like: double finalLat = lat2 * 180 / Math.PI; double finalLon = lon2 * 180 / Math.PI; Console.WriteLine("Target latitude : " + ...


1

We use the ThinkGeo .NET tools for WPF, and I would vote for them for a simple application. The support CAD drawings as a layer type, and you should be able to dynamically symbolize them relatively easily by changing the Default styles within the layer. We use shapefiles, but I dynamically switch styles for polyline/polygon/point features to make it seem ...


1

I found why. While in the old API the previous code works, here you have to add data attributes to your layers as indicate in the "Render graphics layer" example of the documentation in this page: https://developers.arcgis.com/net/desktop/guide/add-graphics-and-text.htm In order to do that Define a UniqueValueRenderer for a GraphicsLayer using code, ...


1

MaximumResolution is not a property of any object in ArcObjects, did you just make that up? If you want to set the maximum display scale of a layer you need to be using MaximumScale of the ILayer interface.


1

I was able to get around this same problem by overriding the OnVisibleChanged event within the dockable window itself: protected override void OnVisibleChanged(EventArgs e) { base.OnVisibleChanged(e); if (base.Visible) // The DW will still be visible if it is being closed. ClearReportViewerSource(); // Whatever code you ...


1

This doesn't answer your question directly, but may be helpful. Consider creating a timer that executes a method every X milliseconds. Then you can use this method to periodically check the properties of all kinds of objects, including the visibility of your dockable window. This way you can know if your window was closed. Below is some relevant code to ...


1

I figured it out. I changed my project to use .NET Framework 4.5.1 instead of 4.5 (not sure if this helped or not) and added the following to my App.config file: <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <publisherPolicy apply="no" /> <...


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