POST
|
Hello, We are downloading offline feature layers for use in our application. Following the "best practices" in the example here: https://developers.arcgis.com/net/android/api-reference/html/T_Esri_ArcGISRuntime_Tasks_Offline_GeodatabaseSyncTask.htm I am calling UnregisterGeodatabaseAsync following successful creation of the offline download. However, this call throws an error "Unable to complete operation." The details in the exception are "Cannot access the replica". Why would the server not be able to access the replica? Did it create one? How can I find out what is going on? GenerateGeodatabaseJob job = gdbSyncTask.GenerateGeodatabase(generateGdbParams, nativeOfflinePath); Geodatabase geodatabase = null; try { await job.GetResultAsync(); geodatabase = job.GetResultAsync().Result; } finally { if (job.Status == JobStatus.Succeeded && geodatabase != null) { try { await gdbSyncTask.UnregisterGeodatabaseAsync(geodatabase); } catch (Exception ex) { // WHAT? } } }
... View more
05-25-2021
04:43 PM
|
0
|
0
|
472
|
POST
|
https://developers.arcgis.com/documentation/security-and-authentication/api-keys/ We are interested in using API Keys as one mode of security authentication for our application, when users do not require user-specific access. At the site above, it says "Only ArcGIS Developer accounts can use API keys to read private content. ArcGIS Organization users should use OAuth 2.0 to obtain ArcGIS identity credentials to read private user content and access services on a user's behalf." Does this mean that this functionality is not recommended for our users? Also: "During the beta period, accessing private content with an API key is free. A pricing model will be announced in Q2 of 2020." Was there a pricing model announced for use of API keys?
... View more
03-03-2021
09:45 AM
|
0
|
1
|
1452
|
POST
|
Sure. This is not public, but you can see what it looks like: https://usalvwdgis1.infor.com:6443/arcgis/rest/services/WALTERS/Sacramento_AnnoTest/MapServer My code is adding on a /0 to the end. https://usalvwdgis1.infor.com:6443/arcgis/rest/services/WALTERS/Sacramento_AnnoTest/MapServer/0 But as I said, the layer id is being stripped off in the actual request. The response to the runtime looks like this: {"currentVersion":10.51,"serviceDescription":"","mapName":"Layers","description":"","copyrightText":"","supportsDynamicLayers":true,"layers":[{"id":0,"name":"ParcelsAnno2","parentLayerId":-1,"defaultVisibility":true,"subLayerIds":[1,2,3],"minScale":20000,"maxScale":0}, ... and so on. which, of course, is not going to the specific layer I wanted. Going through a browser, and including the layer id, I would get this: {"currentVersion":10.51,"id":0,"name":"ParcelsAnno2","type":"Annotation Layer","description":"","geometryType":"esriGeometryPolygon","sourceSpatialReference":{"wkid":102642,"latestWkid":2226},"copyrightText":"","parentLayer":null,"subLayers":[{"id":1,"name":"Default"},{"id":2,"name":"GT37065"}, ... So the problem seems to be in how I am initializing or using the AnnotationLayer object.
... View more
10-09-2019
01:42 PM
|
0
|
1
|
686
|
POST
|
I'm trying to learn how to consume an "Annotation Layer" from the UWP Runtime. My first thought was to use the AnnotationLayer object in the same way that I had used "FeatureLayer" before. Uri uri = new Uri(_AnnotationUri.ToString() + "/" + _AnnotationLayerId.ToString()); _AnnotationLayer = new AnnotationLayer(uri); _AnnotationLayer.IsVisible = true; _MapView.Map.OperationalLayers.Add(_AnnotationLayer); await _AnnotationLayer.LoadAsync(); However, this gives an error "invalid response" on the last line, with no further information. Am I doing this correctly? I watched the traffic in Fiddler, and it seems that it is dropping off the layer id in the request uri. The response looks like a description of all the layers on the service, not just the one I was after. This would account for the "invalid response". But what is the correct way to load and display an Annotation Layer then? Thanks for any help.
... View more
10-09-2019
12:29 PM
|
0
|
3
|
769
|
POST
|
I've found some old discussions saying that annotation layers are not supported by Runtime 10.2, but that there were plans to support it in future releases. However, I cannot find any information about support in 100.2. As an example, the following layer does not appear for us in the Runtime control: Layer: Addresses (ID: 1) If annotation layers are not supported, is there a workaround, either in the app or on the server? I am able to create a renderer in the app, and see the features; I just don't have the correct text.
... View more
10-23-2018
12:55 PM
|
0
|
2
|
883
|
POST
|
Is there an equivalent for a .tpk file that is being held open by a Tiled Layer?
... View more
10-19-2017
02:19 PM
|
0
|
0
|
1213
|
POST
|
I've had this problem too; This thread claims that it is a known bug. In my case, I'm trying to re-create a .geodatabase from the server. I can remove the existing layer from the map view, but there's no way to dispose it. My workaround was to use a new filename for the new file. I check for old files when the application starts, and try to delete them. This is not ideal, because the old file will remain in the filesystem until the application restarts.
... View more
10-19-2017
09:50 AM
|
0
|
3
|
1213
|
POST
|
The problem was the spatial reference mismatch. Thank you for your help, Matvei!
... View more
10-13-2017
02:11 PM
|
0
|
0
|
884
|
POST
|
Thanks for looking into this. I modified my code to explicitly request PNG from the layer, and still, no imagery. Again, there is no web traffic even attempting to get the tiles in any format. The GetCapabilities works just fine, but no subsequent requests are made when displaying the map control. One thing I did notice was that the URI in the Service Info continues to have the REQUEST=GetCapabilities query on it. I don't know if this is messing it up, but all of my working examples assume this query by default, and all of my non-working examples require it. (Omitting it causes a 400 error from this particular server). But I see that you have it working, with the lovely Norwegian coast displaying. Are you putting in the full URI with the GetCapabilities into the WmtsService constructor?
... View more
10-12-2017
01:56 PM
|
0
|
2
|
884
|
POST
|
I am trying to consume WMTS content using ArcGIS Runtime 100.1, and can't get it to work when the server only supports KVP service mode. There was a way in 10.2 to set the service mode on the layer object, but I don't see it in the 100.1 API. For example, a public service with this problem is: http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?Version=1.0.0&service=wmts&request=getcapabilities My code is something like this: WmtsService service = new WmtsService(_TiledUri); await service.LoadAsync(); WmtsServiceInfo info = service.ServiceInfo; _TiledLayer = new WmtsLayer(info.LayerInfos.ToArray()[0]); _MapView.Map.Basemap.BaseLayers.Add(_TiledLayer); _TiledLayer.IsVisible = true; await _TiledLayer.LoadAsync(); The service metadata loads just fine. However the layer itself does not display. In fact, there is no further web traffic to fetch the tiles at all. The GetCapabilities call on the above uri contains: <ows:Operation name="GetTile"> <ows:DCP> <ows:HTTP> <ows:Get xlink:href="http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?"> <ows:Constraint name="GetEncoding"> <ows:AllowedValues> <ows:Value>KVP</ows:Value> </ows:AllowedValues> </ows:Constraint> </ows:Get> </ows:HTTP> </ows:DCP> </ows:Operation> I suspect that since RESTful is not supported, this is the problem. 10.2 would allow you to set the service mode on the layer, and would also automatically try KVP if RESTful failed. How can a similar thing be done in 100.1?
... View more
10-11-2017
11:33 AM
|
0
|
4
|
1288
|
POST
|
I am having a similar problem in .NET runtime version 100.1. For example, using the endpoint: http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?Version=1.0.0&service=wmts&request=getcapabilities In 100.1 I cannot find similar API calls to the solutions here. In particular, there doesn't seem to be any way to set the service mode of the layer to KVP. WmtsService service = new WmtsService(_TiledUri);
await service.LoadAsync();
WmtsServiceInfo info = service.ServiceInfo;
_TiledLayer = new WmtsLayer(info.LayerInfos.ToArray()[0]);
_MapView.Map.Basemap.BaseLayers.Add(_TiledLayer);
_TiledLayer.IsVisible = true;
await _TiledLayer.LoadAsync(); How is KVP service mode specified in 100.1?
... View more
10-10-2017
01:09 PM
|
2
|
0
|
1227
|
POST
|
Looking over my browser history, it seems that WmsLayer was in 10.2, not 100.2. My mistake; sorry about the confusion. <http://www.infor.com/> Phil Scovis | Senior Software Engineer office: 916 403 6229 | phil.scovis@infor.com | http://www.infor.com
... View more
10-09-2017
11:35 AM
|
0
|
1
|
486
|
POST
|
I see that WMTS layers are already supported in ArcGIS Runtime 100.1. I came across some API documentation showing a WMSLayer class, which is from version 100.2. Am I correct that 100.2 has not been released yet? Are there any plans, hopes, dreams, or wishes to support WFS in future releases?
... View more
10-09-2017
10:21 AM
|
0
|
3
|
646
|
POST
|
Thank you for your attention to this. We are able to workaround the problem for our present product release, but thought you should know about it. We look forward to receiving future updates.
... View more
08-11-2017
04:32 PM
|
0
|
0
|
1629
|
Title | Kudos | Posted |
---|---|---|
2 | 10-10-2017 01:09 PM | |
1 | 08-10-2017 09:19 AM | |
1 | 03-06-2017 01:48 PM |
Online Status |
Offline
|
Date Last Visited |
05-26-2021
01:02 AM
|