POST
|
I was using the following code to get elevation data from DTED file in previous versions of ArcGIS Runtime SDK for .NET and it worked fine but now, the application crashes. It works while I am debugging with breakpoints. So, just for test, I put a delay before calling GetElevationAsync(samplepoint) and it works. This happens just in v100.4.0. public async void FindElevationAsync(MapPoint samplepoint) { try { string parentFolder = $"{Directory.GetCurrentDirectory()}\\DTEDFiles"; List<string> files = Directory.EnumerateFiles(parentFolder, "*.dt2", SearchOption.AllDirectories).ToList(); if (files.Count == 0) { _anElevation = NonExistentElevation; return; } RasterElevationSource rasterElevationSource = new RasterElevationSource(files); await rasterElevationSource.LoadAsync(); rasterElevationSource.Name = "DTED"; _elevSurface = new Surface(); _elevSurface.ElevationSources.Add(rasterElevationSource); _elevSurface.Name = "DTED Surface"; await _elevSurface.LoadAsync(); //Create a Scene and set the surface created above as the basesurface Scene dtedScene = new Scene { BaseSurface = _elevSurface }; await dtedScene.LoadAsync(); SceneView aSceneView = new SceneView { Scene = dtedScene }; _anElevation = await _elevSurface.GetElevationAsync(samplepoint); } catch (Exception ex) { _anElevation = NonExistentElevation; // throw; } }
... View more
04-04-2019
12:05 PM
|
0
|
0
|
407
|
POST
|
Hey Keith, Does this still work with 100.4.0? It used to work for me in previous versions but now, it freezes unless i put some delay before calling GetElevationAsync(point);
... View more
04-04-2019
11:09 AM
|
0
|
2
|
487
|
POST
|
I have built a map application using Arcgis .NET Runtime SDK in WPF. With the features in it, I know that I need to get altleast Standard Runtime License and am planning to do so after understanding how licensing works properly. I will be providing my clients the map application integrated with some other software (not deploying to any marketplace). I looked at License your app—ArcGIS Runtime SDK for .NET (WPF) | ArcGIS for Developers and found that licenses can be applied by adding couple of lines of code. Couple of questions below: - How does licensing work if I have to give the application to multiple clients? Is it per computer based? - The link above also states that customers are required to track the number of ArcGIS runtime license use. Is there a way to track it through the Esri account that I buy the license with?( Note: I don't want clients to have to enter the licenses so "License key" in the code seems better option). Any help appreciated. Thanks!
... View more
05-18-2018
10:32 AM
|
0
|
0
|
714
|
POST
|
Hello Morten, Same issue here: https://community.esri.com/thread/208990-calling-identifygraphicsoverlaysasync-makes-hidden-graphic-overlay-blink with a sample. Not sure if you were able to reproduce it. Thanks! Bikesh
... View more
04-19-2018
01:50 PM
|
0
|
0
|
1153
|
BLOG
|
Thank you for the links. It is helpful. Is there any sample code where mapview methods like "identifygraphicsoverlaysasync " is used from viewmodel? or if there is a way to identify graphics in certain layer from viewmodel. I am not sure if identifying graphics should only be done in codebehind? or it can/should be done in viewmodel. Thank you again!
... View more
04-03-2018
04:47 PM
|
0
|
0
|
1702
|
POST
|
I could bind map and graphic overlays but I want to identify graphics of certain layer and get it in viewmodel. Could someone advice me on how to do that? In code behind, I could use, "await mapview.IdentifyGraphicsOverlaysAsync". Any help is appreciated. Thank you!
... View more
04-03-2018
10:13 AM
|
0
|
6
|
2625
|
BLOG
|
Hello Morten, This seems pretty old post but I am trying to call identifygraphicsoverlaysasync from viewmodel to identify and get graphics on certain mouse events. I tried to follow the links you provided but it seems to be broken. Is there any example of similar kind? Thanks!
... View more
04-02-2018
04:11 PM
|
0
|
0
|
1702
|
POST
|
I created a similar application where I needed to drag the graphic. Used mouse events: Mouse down(identify and ready for moving it), Mouse move (check if the mouse is still down while moving, which is drag) , and Mouse up(Confirmation popup). There might be better ways but this worked for me. Along with disabling the map pan, in mouse down event, you can use Mouse.Capture(null) which releases the mouse down event and mouse move event can be captured. Hope this gives some ideas! Thanks, Bikesh
... View more
03-29-2018
02:55 PM
|
0
|
0
|
1220
|
POST
|
I am trying to call a method when user scrolls mouse wheel on the map but it doesn't. Here is what I tried: In Xaml: <esri:MapView MouseWheel="MyMapView_MouseWheel"> That didn't work so: I tried to subscribe it in the code behind: MyMapView.MouseWheel += MyMapView_MouseWheel; It still doesn't trigger the method. However, PreviewMouseWheel works. Any help appreciated! Thanks!
... View more
03-20-2018
03:50 PM
|
0
|
1
|
765
|
POST
|
Thank you for the information. However, The code still uses imagery basemap which needs online access. Map myMap = new Map(Basemap.CreateImagery());
... View more
03-07-2018
04:20 PM
|
0
|
2
|
832
|
POST
|
Can we just use raster file as baselayer in basemap instead of online or offline basemaps(topo, imagery) and still add graphics in graphics overlay of mymapview and do geometry operation on those graphics(GeometryEngine)? Thanks!
... View more
03-07-2018
02:00 PM
|
1
|
4
|
1009
|
POST
|
Hello Morten, Were you able to reproduce the problem? Thanks!
... View more
02-06-2018
09:56 AM
|
0
|
0
|
836
|
POST
|
Hey Morten, I have attached the quick sample to the post. Here is how I can get the blinking of graphics even when it should not be visible: - Run the app. - Uncheck the check box on the top left corner. (This sets the visibility of the graphic overlay to false.) - Zoom in or out while moving your mouse. This is not the exact problem I have but it is very similar while calling the IdentifyGraphicsOverlaysAsync. Thanks!
... View more
02-02-2018
10:55 AM
|
0
|
0
|
836
|
POST
|
The rendering mode is Dynamic. I just put graphic overlay with couple graphics in the graphic overlay collection of the MyMapView, set the IsVisible property of the graphic overlay to false and call the IdentifyGraphicsOverlaysAsync. Whenever I call it, all the graphics in the overlay blinks. I will try to create a small app by tonight or tomorrow. Thanks!
... View more
02-01-2018
03:00 PM
|
0
|
3
|
836
|
POST
|
I set graphicoverlay.IsVisible to false for some overlays to hide it but when I use: await MyMapView.IdentifyGraphicsOverlaysAsync(_identifyGraphicsScrPoint, 1, false), it makes the hidden graphic overlays blink. It only happens in 100.2. Same code works fine with 100.1. Any help is appreciated! Thanks!
... View more
02-01-2018
02:05 PM
|
0
|
5
|
1098
|
Title | Kudos | Posted |
---|---|---|
1 | 03-07-2018 02:00 PM | |
1 | 01-03-2018 02:42 PM | |
1 | 01-08-2018 12:04 PM | |
1 | 10-12-2017 08:41 AM | |
1 | 07-27-2017 12:58 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|