POST
|
Hi, I'm trying to create some offline content for the ArcGIS Runtime using the Desktop Pattern (export data using ArcMap). Some of the layers in ArcMap have an advanced labeling like (VBcript) "[Field_1] & [Field_2]". Unfortunately, the Create ArcGIS Runtime Tool fails with the message "Layer expression not supported". As the ArcGIS Runtime is able to handle such a label expression as described in Label map features—ArcGIS Runtime SDK for .NET | ArcGIS for Developers , referring to the ArcGIS Server REST API "[Field_1] CONCAT [Field_2]", I wonder how to prepare the data in ArcMap to avoid having custom code in ArcGIS Runtime. I tried all VBScript, JScript and Python but eventually failed. Is it possible to prepare the Labeling expression in ArcMap in a way, the Create Runtime Content tool supports the conversion? Kind Regards Jens
... View more
05-30-2016
05:03 AM
|
0
|
0
|
1767
|
POST
|
Sometimes Visual Studio gets confused with various locations of refernced DLL's (Runtime SDK Installation in Program Files vs. local binaries in obj or bin folder). What (most of the time) helps: 1. Execute "Clean" on solution item 2. Manually delete everything in obj / bin folders 3. Remove and readd references to ArcGIS Runtime
... View more
01-11-2016
03:58 AM
|
1
|
1
|
650
|
POST
|
I've seen the same issue in virtual machines. The basemap does not display at all, although the tiles are retrieved from the server. But it works fine with ArcGIS Runtime for .NET 10.2.5! My guess is some core functionality in the rendering engine uses some kind of 3D-functionality of the graphics card since 10.2.6 due to the 3D enhancements. I haven't had the chance to test this with different VM products by now, so I can't tell if my assumption is true or not.
... View more
01-07-2016
04:08 AM
|
0
|
4
|
972
|
POST
|
Wolfgang, thanks for the quick response, greatly appreciated. Kind Regards Jens
... View more
09-21-2015
10:53 PM
|
0
|
0
|
558
|
POST
|
In the ExcelDropHandler Sample https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Content/ExcelDropHandler , the Readme references "Community Sample data" to be used by the sample. Unfortunately, I can't find this data under resources. Where can I download the sample data? Kind Regards Jens
... View more
09-21-2015
02:26 AM
|
0
|
2
|
3060
|
POST
|
Charles, thanks a lot for your comprehensive answer. It is really helpful to understand those details of the Threading Model. Regards Jens
... View more
08-30-2015
10:58 PM
|
0
|
0
|
1522
|
POST
|
I understand that each and every object in the ArcGIS.Core.Data lives on the MCT and therefore has to be used within QueuedTask.Run(..) scope. This makes ArcGIS Pro actually to kind of a single threaded application, as soon as it comes to data access. While looking through the community samples, I stumbled across arcgis-pro-sdk-community-samples/CoreHost/CoreHostSample at master · Esri/arcgis-pro-sdk-community-samples · GitHub where the Geodatabase-Object is used in the main thread (being an STA Thread), without QueuedTask. This led me to the first question / test program: What happens, if the geodatabase object is instantiated and used in one background thread? Seems to work fine. Second question / test program: What happens, if two geodatabase objects are created in two different (STA-) threads and some work is done on different tables? Seems to work fine. Question is: Is this supported in any way? I do understand, that I will run into problems as soon as I try to pass objects from one thread to another. Updating data might also become critical, as there might be no synchronization context. But if I stay in a read-only context, is it ok to create "my own" geodatabase object in "my own" thread? Kind Regards Jens
... View more
08-27-2015
07:27 AM
|
1
|
2
|
4489
|
POST
|
I haven't tested any of these, but this could help you to avoid writing your kml data to disk and keep it in memory: How to get uri for the resource dynamically created in memory
... View more
08-23-2015
11:39 PM
|
0
|
0
|
412
|
POST
|
How did you deploy the application to the target system? As you're using VS2015, I guess you didn't add the "Runtime .NET Deployment manifest", right? You just copied the app from bin\debug to the target system? If so, I guess you've been targeting "Any CPU" and only the 64-bit version of the runtime got included. Take a look at the bin\Debug\client32 folder. If it's empty, there's no 32-bit version. So either go to official VS2013 and at the deployment manifest, or try to compile targeting x86.
... View more
08-11-2015
01:30 AM
|
0
|
7
|
1184
|
POST
|
Can you provide a link to MapView.MouseMove in the API documentation, please? I can't find it and I believe, it's just not there. The MapView itself doesn't provide any events at all (which makes sense because of the subscription model) and the ArcGIS.Desktop.Mapping.Events namespace doesn't provide a MouseMove like event neither. Have I missed anything? Regards Jens
... View more
08-05-2015
10:53 PM
|
0
|
2
|
600
|
POST
|
While exploring the SDK, I tried to display the current Map Coordinates in a DockPane, similar to the stock display at the bottom of the map. The idea was to have the pane updated always, regardless of the activated tool (e.g. Select Tool or Editing Tool). The problem is, I haven't found the corrects events, two different approaches failed: 1. Subscribe for Application.Window.MouseMove --> The events aren't raised while the mouse pointer is over the map 2. Override OnToolMouseMove --> Only one tool can be active at a given time I'm not sure, if I have either overseen any existing functionality, if it's a missing API in the SDK or if this kind of functionality is not available on purpose. The latter one could make sense to keep the application responsive, whatever the SDK user implements... Can anybody comment on this, please? Kind Regards Jens
... View more
08-03-2015
10:56 PM
|
1
|
4
|
3290
|
POST
|
Antti, thanks a lot for your reply! Using your Helper-Class, I am able to unit test the class right now, great! Just for reference, if other users come across this, here is some detail information about the helper class: http://blogs.msdn.com/b/pfxteam/archive/2012/01/20/10259049.aspx http://blogs.msdn.com/b/pfxteam/archive/2012/01/21/10259307.aspx Kind Regards Jens
... View more
07-23-2015
11:43 PM
|
0
|
1
|
444
|
POST
|
How did you create the Runtime Geodatabase? If it was created by the export function in ArcMap, it's read-only. You have to create the Geodatabase using the Tasks.Offline namespace in combination with ArcGIS Online / ArcGIS for Server.
... View more
07-22-2015
10:47 PM
|
0
|
2
|
376
|
POST
|
Could anyone please comment on why this UnitTest code (MSTest Project) fails in "onCompletedCallback"? The job itself runs fine and I am able to query results using "CheckEstimateTileCacheSizeJobStatusAsync", but "onCompleteCallback" passes a NullReferenceException.
... View more
07-17-2015
02:54 AM
|
0
|
3
|
444
|
POST
|
Currently, I'm testing ExportTileCacheTask.EstimateTileCacheAsync(..). While it's pretty easy to get started with this API, I'm having a hard time to get it really stable and user-friendly. I'm not sure if I'm using it wrong or if anything should be improved behind the scenes. No detail information, if number of tiles > 100.000 Querying the Sampleserver (World_Street_Map (MapServer)) for the whole world with LOD == 9 results in an Exception with the message "Export tile operation failed". If I use the REST API, I do find the reason why, it clearly states: "ERROR 001564: Requested tile count(262144) exceeds the maximum allowed number of tiles(100000) to be exported for service World_Street_Map:MapServer". The only way to get access to this information is to parse all messages of ExportTileCacheJob.Messages after execution finished... which brings to the next problem: await exportTilesTask.EstimateTileCacheSizeAsync(...) immediately returns The method call immediately returns to the execution of the method. At this point, the returned job contains close to zero information. I think the method immediately returns because of "submit and query" pattern implemented at server side. The callback "(result, ex)" does not provide me with job information, so right now I extended my method with a "TaskCompletionSource": var taskCompletionSource = new TaskCompletionSource<EstimateTileCacheSizeResult>();
var job = await exportTilesTask.EstimateTileCacheSizeAsync(options,
(result, ex) =>
{
if (ex == null) { taskCompletionSource.SetResult(result); }
else { taskCompletionSource.SetException(ex); }
}, .....);
await taskCompletionSource.Task;
// job finished with all information here
This works (for me), but I really don't know if that's a correct / good pattern. It seems like a much of overhead to simply get an estimation. Is this pattern correct? Should it be integrated into the SDK itself? Is there a simpler way to get finished job information? Randomly getting HTTP 500 Errors I do get random 500 errors, raising an exception and exiting the estimation. I'm not absolutely sure, but I think I do get those errors more often, the smaller I set checkInterval argument. Maybe, this is what happens behind the scenes: Runtime SDK asks server to start the job Server returns the job id, while still starting the job Runtime SDK asks (kind of) immediately for the job status Server is still starting the job and replies with 500 Taking the job id of the error message and looking at the state with the Web Browser, the job states "succeeded", so I guess it must be some kind of timing problem (see step 3). Any ideas on that? Kind Regards Jens Buchta
... View more
07-15-2015
03:05 AM
|
0
|
4
|
3771
|
Title | Kudos | Posted |
---|---|---|
1 | 04-06-2017 11:40 PM | |
1 | 04-19-2018 02:45 AM | |
1 | 01-11-2016 03:58 AM | |
1 | 07-17-2017 12:14 AM | |
1 | 04-11-2017 03:53 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|