|
POST
|
Try setting the background color with a Raster Function - example code below. async Task AddRasterAndSetBackgroundColorValue()
{
try
{
// Create a raster dataset from a local file raster.
Raster raster = new Raster(@"..\FileRaster.tif");
// Await the Load to catch any errors.
await raster.LoadAsync();
// Create a raster function from the JSON string using the static/Shared method called: RasterFunction.FromJson(json as String)
RasterFunction rasterFunction = RasterFunction.FromJson(jsonFunction);
// Get the raster function arguments
RasterFunctionArguments rasterFunctionArguments = rasterFunction.Arguments;
// Get the list of raster names from the raster function arguments.
IReadOnlyList<string> rasterNames = rasterFunctionArguments.GetRasterNames();
// Set the local file raster as a raster name argument.
rasterFunctionArguments.SetRaster(rasterNames[0], raster);
// Create a new raster based on the raster function.
Raster rasterWithFunction = new Raster(rasterFunction);
// Create a new raster layer from the raster with function applied.
RasterLayer rasterLayer = new RasterLayer(rasterWithFunction);
// Add RasterLayer with function to Map OperationalLayers collection.
Map.OperationalLayers.Add(rasterLayer);
}
catch (Exception ex)
{
}
}
string jsonFunction =
@"{
""raster_function"":{""type"":""Mask_function""},
""raster_function_arguments"":
{
""nodata_values"":{""double_array"":[0],""type"":""Raster_function_variable""},
""nodata_interpretation"":{""nodata_interpretation"":""all"",""type"":""Raster_function_variable""},
""raster"":{""name"":""raster"",""is_raster"":true,""type"":""Raster_function_variable""},
""type"":""Raster_function_arguments""
},
""type"":""Raster_function_template""
}";
... View more
05-03-2021
05:37 PM
|
1
|
1
|
2114
|
|
POST
|
Hi, A native call stack could help narrow this down - for more info see https://community.esri.com/t5/arcgis-runtime-sdks-blog/announcing-availability-of-arcgis-runtime-sdk-for-net-symbol/ba-p/886218. Questions: Do you have, or are you able to create any crash dumps? Are you able to repro in your dev environment with a debugger attached? Can you save a dxdiag report from your deployment environment? Thanks
... View more
05-03-2021
12:01 PM
|
0
|
0
|
994
|
|
POST
|
Hi, The Visual Studio extension which includes Project Templates supports 2019 only, but 2017 is still supported for referencing NuGet packages. I'll ensure the documentation is updated to better indicate this distinction. Thanks
... View more
04-26-2021
05:00 PM
|
0
|
0
|
1836
|
|
POST
|
@GonzaloMuöoz We'll work with you through your Support case to help you find the right solution.
... View more
04-23-2021
12:26 PM
|
1
|
0
|
1687
|
|
BLOG
|
We are pleased to announce the 100.11 release of ArcGIS Runtime SDK for .NET. This release includes significant new features, enhancements to existing features, performance improvements, bug fixes, and a preview of the roadmap. You can read about the highlights common to all ArcGIS Runtime SDKs in the shared ArcGIS Runtime blog post and additional details in the 100.11 Release Notes. For our .NET community here are several more highlights... API: Support for WinUI 3 (preview) With the 100.11 release we have updated the preview of ArcGIS Runtime support for WinUI 3 to target version 0.5.5 which was released recently as part of Project Reunion 0.5. Note: While WinUI 3 - Project Reunion 0.5 is the first stable, supported version of WinUI 3 that can be used to create production apps that can be published to the Microsoft Store, support for WinUI with ArcGIS Runtime is still in Preview and cannot be used in production at this time. To try out ArcGIS Runtime and WinUI 3: Follow the Microsoft docs Get Started steps to Create a WinUI 3 desktop app for C# and .NET 5. Open the NuGet Package Manager for your new WinUI application project. Install package Esri.ArcGISRuntime.WinUI version 100.11.0-preview3. Open MainWindow.xaml. Add a XAML namespace e.g. xmlns:esri="using:Esri.ArcGISRuntime.UI.Controls" Add a map view control (and remove the StackPanel) e.g. <esri:MapView x:Name="MyMapView" /> Open MainWindow.xaml.cs Open a browser and go to your ArcGIS Developer dashboard to get your API key. Set your ArcGIS API key e.g. ArcGISRuntimeEnvironment.ApiKey = "<Your_API_key_here>"; Create a new map and set the map view's map property e.g. MyMapView.Map = new Map(BasemapStyle.ArcGISChartedTerritory); Run the app to see ArcGIS Runtime and Win UI in action. The ArcGIS Runtime SDK for .NET sample viewer for WinUI has also been updated: https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/main/src/WinUI. API : UI interaction and rendering UI and rendering enhancements for the end-user and for the developer: Improved support for system-wide dark UI appearance (Dark Mode) in the Attribution Control for MapView and SceneView on Android, iOS, UWP, and WinUI. Support for mouse, trackpad, and keyboard gestures on iOS. Support for the double-tap+drag gesture to zoom in/out in Android and iOS. SDK : Project Template updates The project templates included with the ArcGIS Runtime SDK for .NET Visual Studio extension have been updated to more closely follow the naming conventions of the default Visual Studio templates. 100.10 Template Name 100.11 Template Name Notes ArcGIS Runtime App (WPF .NET Core) ArcGIS Runtime WPF App (.NET) This template is now parameterized, allowing you to choose .NET Core 3.1 LTS or .NET 5 ArcGIS Runtime App (Xamarin.Forms .NET Standard) ArcGIS Runtime Mobile App (Xamarin.Forms) ArcGIS Runtime App (Xamarin.Forms Shared) None Template removed ArcGIS Runtime App (iOS) ArcGIS Runtime iOS App (Xamarin) ArcGIS Runtime App (Android) ArcGIS Runtime Android App (Xamarin) ArcGIS Runtime App (Universal Windows) ArcGIS Runtime App (Universal Windows) No change SDK : Toolkit The Toolkit for ArcGIS Runtime SDK for .NET is released in unison with ArcGIS Runtime 100.11 and includes components that support your development of apps when using WPF, UWP, Xamarin.Android, Xamarin.iOS, and Xamarin.Forms. SDK : Documentation New and updated topics on the ArcGIS developer site. Add labels topic Augmented Reality topic License topic Trace a Utility Network topic Use branch versioned data topic Deployment topic System requirements for 100.11 SDK : Samples New samples, sample updates, and enhancements to the sample viewer apps: New sample: Edit with branch versioning New sample: Apply mosaic rule to rasters WinUI samples (preview) Various bug fixes across all platforms SDK : Open Source Apps Updates and enhancements to the Open Source Apps: The Data Collection open source app has received a major update, including a new responsive design, enhanced unit testing, and an improved data entry experience. The Offline Mapbook and Maps App open source apps have been updated to ArcGIS Runtime 100.11. Note: The Indoor Routing open source app has been retired, and will not receive future updates. Indoor Routing has been superseded by ArcGIS Indoors. Deprecation notices Locators created with the Create Address Locator tool (Geocoding toolbox) will not be supported after ArcGIS Runtime version 100.11. With the 100.12 release, only the locators created with the Create Locator tool (Geocoding toolbox) will be supported. The deprecated locator format is composed of the files .loc, .loc.xml, .locb, and .lox. The newer locator format is composed of the files .loc and .loz. Support for developing with and deploying apps to Windows 10, Versions 1803 (Build 17134) & 1809 (Build 17763), is deprecated. A minimum of Windows 10 Version 1909 (Build 18363) will be required at the next release. ArcGIS Runtime Local Server The current release of ArcGIS Runtime Local Server SDK is version 100.10, released on April 15. The 100.10 release of Local Server provides geoprocessing and map package compatibility with ArcGIS Pro 2.7.x. To use the latest version, update your existing WPF projects to reference Esri.ArcGISRuntime.LocalServices 100.10 and use ArcGIS Pro 2.7.x to repackage any geoprocessing and map packages used by your application. We thank you for your ongoing support and feedback and hope you will find these updates valuable as you continue to use ArcGIS Runtime to build amazing applications for your users. The ArcGIS Runtime .NET Dev Team
... View more
04-22-2021
10:45 AM
|
0
|
0
|
3989
|
|
POST
|
Steve, Sorry - I read the first part involving "_emptyMpkPath" and assumed you were using the Local Server. You are of course correct: you are using the direct API when using ShapefileFeatureTable. The API should re-project on-the-fly to match the spatial reference of the map. Possibly you need the additional 'Project Engine' files? (this is a guess, but worth a try I think) Take a look at this topic which explains the additional PE files: https://developers.arcgis.com/net/spatial-and-data-analysis/spatial-references/
... View more
04-16-2021
12:45 PM
|
1
|
2
|
2356
|
|
POST
|
Hi, In the 100.x generation Shapefiles are now supported directly by the ArcGIS Runtime API, without needing to go via the Local Server component. While it's not directly solving the question, I'd recommend trying this approach. For API ref and sample code see https://developers.arcgis.com/net/wpf/api-reference/html/T_Esri_ArcGISRuntime_Data_ShapefileFeatureTable.htm
... View more
04-16-2021
09:06 AM
|
0
|
1
|
2382
|
|
BLOG
|
ArcGIS Runtime Local Server SDK 100.10 is now available for download from the ArcGIS Developers site. This is an incremental compatibility release that provides support for geoprocessing and map packages created with ArcGIS Pro 2.7.x. As previously announced, with this release ArcGIS Desktop 10.x packages are no longer supported with ArcGIS Runtime Local Server. The previous release, version 100.9, was the last ArcGIS Runtime Local Server release to support ArcGIS Desktop 10.x packages. Note: If you are using ArcGIS Runtime SDK for .NET (Esri.ArcGISRuntime.WPF) you will need to update any projects referencing Esri.ArcGISRuntime.LocalServices from 100.9 to 100.10 via NuGet.org or alternatively download the package from NuGet.org to the local Esri NuGet source created by the ArcGIS Runtime SDK for .NET Visual Studio extension (%localappdata%\Esri\NuGet) and then update your projects. ArcGIS Runtime Local Server is an optional component for the ArcGIS Runtime SDKs for .NET, Java, and Qt. It provides world-class scientific spatial analysis capabilities and data connectivity for your custom offline desktop applications. For more information please see the Local Server guide topics for .NET, Java and Qt. We hope you’ll find these updates to ArcGIS Runtime Local Server useful as you continue to build amazing technology for your customers with ArcGIS Runtime.
... View more
04-15-2021
05:25 PM
|
0
|
0
|
896
|
|
POST
|
That should work, but you could also try the challenge approach to check you're creating the right type of credential. The following samples show handling the challenge, either with known credentials or prompting the user: https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/10.2.7/src/Desktop/ArcGISRuntimeSamplesDesktop/Samples/Security/TokenSecuredServices/TokenSecuredKnownUser/MainWindow.xaml.cs https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/10.2.7/src/Desktop/ArcGISRuntimeSamplesDesktop/Samples/Security/TokenSecuredServices/TokenSecuredChallenge/MainWindow.xaml.cs https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/10.2.7/src/Desktop/ArcGISRuntimeSamplesDesktop/Samples/Security/OAuthAuthorization/OAuthAuthorization
... View more
04-15-2021
09:19 AM
|
0
|
0
|
2953
|
|
POST
|
I believe creating an ArcGISDynamicMapServiceLayer (MapServer endpoint) or a FeatureLayer (FeatureServer/<ID>) should work, as long as you have registered an event handler for the IdentityManager ChallengeHandler or you have implemented a workflow for pre-authentication.
... View more
04-12-2021
02:30 PM
|
0
|
2
|
2973
|
|
POST
|
Hi, You can find the old samples for 10.2.7 in https://github.com/Esri/arcgis-runtime-samples-dotnet/releases/tag/v10.2.7 These include several Portal samples.
... View more
04-12-2021
09:59 AM
|
0
|
4
|
2996
|
|
POST
|
What account type are you signing in as? ArcGIS Online Public ArcGIS Developer ArcGIS Online Organizational Enterprise
... View more
04-12-2021
09:07 AM
|
0
|
0
|
2985
|
|
POST
|
Hi, Thanks for the awesome repro app. You're authenticating as an app, can you try setting the TokenAuthenticationType to OAuthClientCredentials when you create the ServerInfo in your LoginButton_Click event? TokenAuthenticationType = TokenAuthenticationType.OAuthClientCredentials, https://developers.arcgis.com/net/wpf/api-reference/html/T_Esri_ArcGISRuntime_Security_TokenAuthenticationType.htm
... View more
04-09-2021
12:26 PM
|
0
|
0
|
2999
|
|
POST
|
To display ArcGIS map packages as a layer requires the ArcGIS Runtime Local Server component. The current Local Server release, v100.9, supports both ArcMap 10.8.x packages (.mpk) and ArcGIS Pro packages 2.6.x (.mpkx). The next version of Local Server, v100.10, will support only ArcGIS Pro packages 2.7.x (.mpkx). We're still in the process of updating the samples to reflect this transition, therefore the current WPF samples reference Local Server 100.9 and use ArcMap packages. https://developers.arcgis.com/net/wpf/sample-code/local-server-map-image-layer/ https://developers.arcgis.com/net/wpf/sample-code/local-server-feature-layer/ The recommended offline/local data workflows for ArcGIS Runtime can be found in the offline maps doc: https://developers.arcgis.com/net/offline-maps-scenes-and-data/
... View more
04-09-2021
10:15 AM
|
1
|
0
|
2262
|
|
POST
|
The current maximum number of Line of Sight (LoS) analyses is 64. The practical limit in terms of user experience may be lower, depending on the device e.g. a low-end Android mobile versus a high-end Windows desktop.
... View more
04-07-2021
09:39 AM
|
0
|
0
|
1180
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2026 05:04 AM | |
| 1 | 02-20-2024 07:02 AM | |
| 1 | 01-19-2026 06:44 AM | |
| 1 | 12-10-2025 07:16 AM | |
| 1 | 11-21-2025 08:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|