|
POST
|
Hi Uma, Is it possible to remove the Customize QAT button programmatically in a configuration? I do not want the users to make any changes to the toolbar. Thanks.
... View more
08-08-2019
01:53 PM
|
0
|
4
|
2037
|
|
POST
|
What is the proper pattern for changing the Pro application options in a configuration addin? Specifically, I would like to programmatically disable the automatic loading of basemaps in a new map when Pro starts. Manually I can set this option by going to Project -> Options -> Application -> Map and Scene and choosing None for Basemap. Thanks!
... View more
08-08-2019
01:13 PM
|
1
|
0
|
427
|
|
POST
|
I am looking to simplify the Pro interface via a configuration addin. The items I am having trouble with are Quick Access Toolbar (I need to remove some of the buttons) and the Attribute Table (need to remove Add Field, Delete Field, Delete Selection and a few other buttons). Can this be achieved via DAML? Thanks.
... View more
08-08-2019
06:43 AM
|
0
|
7
|
2238
|
|
POST
|
I have an ArcObjects console app which does the following: 1. Opens an SDE workspace from connection property set. 2. Creates a feature layer from a feature class in the workspace. 3. Applies symbology to the layer. 4. Joins the layer to a table from the same workspace. 5. Saves the layer to a layer file. Can the same be done in a console app written with the Pro API? I am looking at the API and cannot find a way to create a layer without adding it to a map. Also I cannot see a method to save a layer file. Is the Save Layer File GP tool the only way to do that? Thanks.
... View more
01-16-2019
10:01 AM
|
0
|
0
|
502
|
|
POST
|
I am evaluating the feasibility of migrating an ArcMap addin to a Pro addin. Many tools in the existing addin include various raster analysis and processing functions. How complete is the current raster-specific API in the SDK comparing to the ArcObjects raster API? Specifically, I have these questions: 1. Is the functionality in ArcGIS.Core.Data.Raster equivalent to that in the ArcObjects Esri.ArcGIS.DataSourcesRaster library? 2. Is there functionality equivalent to the ArcObjects Esri.ArcGIS.SpatialAnalyst:IMapAlgebraOp? Should I be using the RasterCalculator_sa GP tool in the Pro SDK to perform map algebra calculations? 3. The ArcMap addin uses a few GP tools from the ArcObjects libraries like ESRI.ArcGIS.SpatialAnalystTools and ESRI.ArcGIS.DataManagementTools. I assume that the equivalent GP tools should be executed from the Pro SDK? Are there any issues I should be aware of when migrating the raster tools to the Pro SDK? Thanks!
... View more
01-08-2019
01:04 PM
|
0
|
3
|
5589
|
|
POST
|
Thanks for the great suggestions, Morten! I have fixed this by making sure that the time delay between two consecutive overlay identify's on mouse move is at least 0.1 seconds. The flickering of the labels and graphics is no longer occurring on low-end machines.
... View more
04-09-2018
10:34 AM
|
0
|
0
|
2334
|
|
POST
|
On MouseMove, I am reading off map coordinates (Web Mercator) and convert them to Lat/Long for display. I am also doing IdentifyGraphicsOverlayAsync against three graphics layers to display tooltips that contain attributes for the graphics. The combined number of graphics in all three overlays is fairly small (will rarely exceed 100) and the geometries are very simple, with a small number of vertices. I suspect that the overlay queries and the tooltips may be the culprit, and the code can perhaps be optimized not to execute every time the mouse moves, to reduce the number of queries. Still, it does not look like the map is less responsive, it is the flickering of labels and graphics that is the problem.
... View more
04-06-2018
11:57 AM
|
0
|
3
|
2334
|
|
POST
|
I am using the GeoView MouseMove event to dynamically display the coordinates at the pointer location and tooltips for a few graphics. On one machine moving the mouse causes feature labels and graphics to flicker. The client is using local data (map package) on Windows 10, and the application is built with 100.1.0 and WPF. Is this a hardware-related issue? The machine has I3-7100 processor (3.9 GHz, 2 cores), 4 GB or RAM and Intel HD Graphics 630 graphics card. I think the problem may be with the graphics card as it has a fairly low performance rating. Thanks.
... View more
04-06-2018
08:10 AM
|
0
|
6
|
3198
|
|
POST
|
Thanks again, Morten. I got this working by using a BackgroundWorker to do the geocoding on another thread. Appreciate the help!
... View more
04-06-2018
07:53 AM
|
0
|
2
|
2671
|
|
POST
|
Thanks Morten. Yes, the problem is not with rendering of the graphics, but with geocoding. I do need to run geocoding in a background thread so the UI thread is not blocked. Is there a way to run geocoding on a background thread synchronously and return a value? Is BackgroundWorker the only way to run code on a background thread? Here what I want to achieve: foreach (string address in addresses) { - Instantiate a background worker (?), geocode the address and return X/Y coordinates - Create a point graphic and add it to the map }
... View more
04-03-2018
04:44 PM
|
0
|
4
|
2671
|
|
POST
|
I am using a locator to geocode addresses and then add the locations to the map as graphics (geocode, add graphic to the map, repeat). As the code runs in a loop, the map freezes and becomes responsive again after the last address has been geocoded and added to the map. If there are 30 addresses, the map is frozen for 8 seconds and then all the graphics get added at once. I would like the map to refresh after each location graphic has been added, and be responsive at all times. As I understand, this happens because the code runs in the default UI thread. One option to solve this is to use the WPF version of the Windows Forms DoEvents() statement: Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new Action(delegate { })); I have not been able to make this work, as I am not sure where this line of code should go. A cleaner way perhaps is to use a background thread (BackgroundWorker) to do the geocoding. With this approach, however, I am running into problems accessing objects in the UI thread. I am using ArcGIS Runtime 100.1. Thanks for any suggestions! Alex
... View more
04-03-2018
01:34 PM
|
0
|
6
|
3581
|
|
POST
|
I am investigating a problem with an ArcGIS Runtime application periodically crashing in client’s environment during testing. The application is a WPF control we built with ArcGIS Runtime 100.1.1744. It is embedded in a .NET application built by the client. The client is running a simple automated test using scripts. They launch their application (which in turn initializes the embedded map in our control), wait for a minute or two and then shut it down. During this test their application crashes on initialization, once or twice in an hour, which makes it one failure in 20-30 successful attempts. The last entry in the log their application writes is successful initialization of our map control. We have a method called InitializeMap which has proper error handling. This method executes successfully every time, but something in the map control appears to fail after that. The client is using Windows 10 Pro Version 1511 for their testing. The GIS data for the map is stored in a local map package (MMPK), which includes layers, locator (for geocoding) and a network (for routing). The basemap is loaded from ArcGIS Online. The WPF control is compiled with the "Any CPU" option. The Windows event logs from the crashes point to one of two specific DLLs and also the “unknown” module: Faulting application name: LibertyShield.exe, version: 17.3.1731.0, time stamp: 0x5ab29957 Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000 Exception code: 0xc0000005 Fault offset: 0x12ef2c98 Faulting process id: 0x690 Faulting application start time: 0x01d3c2a9e14fd713 Faulting application path: C:\EdgeIQ\LibertyShield\LibertyShield.exe Faulting module path: unknown Report Id: 5dc3f507-e0a1-45c2-981f-1bbcc2416124 Faulting application name: LibertyShield.exe, version: 17.3.1716.0, time stamp: 0x5aaa8c87 Faulting module name: RuntimeCoreNet.dll, version: 100.1.0.1744, time stamp: 0x594c5efd Exception code: 0xc0000005 Fault offset: 0x004c00c1 Faulting process id: 0x2e50 Faulting application start time: 0x01d3c13e991056ac Faulting application path: C:\EdgeIQ\LibertySHIELD\LibertyShield.exe Faulting module path: c:\edgeiq\guardianmap\arcgisruntime100.1\client32\RuntimeCoreNet.dll Report Id: 07d90b83-d23c-4bef-8fa1-06ff7035c16b Faulting application name: LibertyShield.exe, version: 17.3.1731.0, time stamp: 0x5ab29957 Faulting module name: ucrtbase.dll, version: 10.0.10586.1176, time stamp: 0x59ba0a90 Exception code: 0xc0000409 Fault offset: 0x000834b2 Faulting process id: 0x15f4 Faulting application start time: 0x01d3c2a453ac0540 Faulting application path: C:\EdgeIQ\LibertyShield\LibertyShield.exe Faulting module path: C:\WINDOWS\SYSTEM32\ucrtbase.dll Report Id: 0e5a9948-ef8a-42da-a4e2-20f6a85bbd75 Faulting package full name: Faulting package-relative application ID: The client also mentioned that they have seen a similar error in the past in unrelated tests, with the faulting module being kernelbase.dll. What should we do to try and isolate this issue? Thanks for any ideas. Alex
... View more
03-23-2018
11:26 AM
|
1
|
3
|
2216
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-29-2020 09:04 AM | |
| 1 | 08-19-2020 06:19 AM | |
| 1 | 08-08-2019 01:13 PM | |
| 1 | 03-23-2018 11:26 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|