POST
|
We have an app built with the ArcGIS Runtime SDK for iOS. One of our customers is using it behind a proxy server with content filtering. When they use a proxy filter, ArcGIS Online is refusing requests from their proxy server for public map tiles. Here is what they told me: "What I am understanding from our filter company is that arcgisonline.com server is not taking requests from clients that are coming from our proxy filter. It is not that it is being blocked, rather the server is refusing connections from these clients. When we remove the proxy filter setting, the request works, while going through our inline filter. Here is the error provided by LightSpeed, our filter vendor." They also provided a screen shot of the error in a terminal, and a screen shot of some logs showing that the requests are not being blocked on their end. Any help would be appreciated.
... View more
04-21-2015
07:47 AM
|
0
|
0
|
2663
|
POST
|
Are there null shapes in the source data? We found that features with null shapes do not make it into the runtime geodatabase when generating a replica via a FeatureServer. Maybe something similar is happening with the Share As Runtime Content tool?
... View more
07-02-2014
09:39 AM
|
0
|
0
|
296
|
POST
|
+1 I would like the ability to organize layers into groups on the client side. There doesn't seem to be a way to do this with the SDK. It seems that AGSGroupLayer is only useful for working with group layers that are pre-defined in a MapServer or FeatureServer.
... View more
07-02-2014
09:35 AM
|
0
|
0
|
314
|
POST
|
+1 for a list of error codes. We have seen a few different ones and have no idea what they mean.
... View more
06-19-2014
08:21 AM
|
0
|
0
|
199
|
POST
|
Some properties are missing after encoding a text symbol to JSON. Most notably the color and borderLineWidth. This makes it difficult to rehydrate the symbol later. Example: AGSTextSymbol *textSymbol = [[AGSTextSymbol alloc] initWithText:@"Hello World" color:[UIColor redColor]]; textSymbol.fontSize = 14; textSymbol.borderLineWidth = 4; textSymbol.borderLineColor = [[AGSColor alloc] initWithRed:1 green:1 blue:1 alpha:.8]; NSDictionary *dict = [textSymbol encodeToJSON]; NSData *data = [NSJSONSerialization dataWithJSONObject:dict options:NSJSONWritingPrettyPrinted error:nil]; NSString *json = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; NSLog(@"%@", json); Results in this: { "text" : "Hello World", "type" : "esriTS", "backgroundColor" : [ 0, 0, 0, 0 ], "verticalAlignment" : "middle", "horizontalAlignment" : "center", "borderLineColor" : [ 255, 255, 255, 204 ], "font" : { "weight" : "normal", "style" : "normal", "size" : 14, "decoration" : "none", "family" : "Helvetica" } }
... View more
06-10-2014
09:31 AM
|
0
|
1
|
2718
|
POST
|
Are you running in the simulator? I've noticed that some methods in the SDK which include an NSError** parameter will crash at the core runtime level when running in the simulator but will properly fill out the error when running on a device.
... View more
06-10-2014
09:21 AM
|
0
|
0
|
302
|
POST
|
James, The issue might be with 'FACILITYDIAGRAM' field in the feature class. This field is declared as 32 bit int, where as many of its subtypes have the default value of float. It might have happened if you typed 0.0 instead of 0 in one of the previous versions of the destop. Can you try reassigning the default values in ArcCatalog and try creating the runtime package again? Hope this helps! Hi Again, I went through this feature class and recalculated every unique value in every subtype and domain field to make sure that they are all integers. I am still getting the same error 19 when trying to initialize the geodatabase with the Runtime SDK. I placed a new copy of the geodatabase file at the same download location that I previously sent you via private message. Can you take another look to see if something else might be wrong? Thank you, James
... View more
05-16-2014
12:27 PM
|
0
|
0
|
254
|
POST
|
I think Share As - Runtime Content... limits the records to the current map extent in ArcMap. Were you zoomed in when creating the geodatabase? If so, try setting the zoom level to include all of the parcels you want to export before running the tool.
... View more
05-12-2014
08:15 AM
|
0
|
0
|
844
|
POST
|
I tried to send you a private message with a link to download the geodatabase file but you have private messaging disabled. Can you provide an alternate way for me to get the file to you? I cannot post the data publicly. Thanks, James
... View more
05-07-2014
12:33 PM
|
0
|
0
|
687
|
POST
|
Hi, 1. I am including the geodatabase in the app bundle and copying it to the documents folder on startup. 2. I was testing in the simulator. I tried on a device and the app does not crash. Instead an NSError is returned and the following is logged to the XCode Console: error loading geodatabase: The operation couldn�??t be completed. (com.esri.arcgis.runtime.error error 19.) Is there documentation for the error codes that might be returned such as "error 19"? I will send you a PM with a link to the geodatabase file. Thanks for your help! Cheers, James
... View more
05-07-2014
12:29 PM
|
0
|
0
|
687
|
POST
|
I created a geodatabase file in ArcMap using the Share As - Runtime Content menu option. After sideloading the geodatabse to a sample app, the app is crashing when attempting to open the file with the code: NSString *gdbPath = [self gdbDocumentsPath]; NSError *error = nil; self.geodatabase = [[AGSGDBGeodatabase alloc] initWithPath:gdbPath error:&error]; if (error) { NSLog(@"error loading geodatabase: %@", [error localizedDescription]); } The crash is logged to the XCode Console as: libc++abi.dylib: terminating with uncaught exception of type Esri_runtimecore::Geodatabase::geodatabase_error: std::exception A few notes: The mxd passed validation (i.e. - Analyze) prior to sharing the runtime content and no warnings or errors were given I would expect an NSError to be passed back from the initWithPath:error: method, but instead the app never gets beyond this line - It just crashes The console log message gives no clue as to what the problem might be I also tried publishing the mxd to a Feature Service, and creating the geodatabase replica via ArcGIS Server and got the same result By repeatedly removing layers from my mxd and recreating the geodatabase I have narrowed the problem down to some specific layers. I can provide a runtime geodatabase with one of these layers if you need it to reproduce the error. Cheers, James
... View more
05-07-2014
11:46 AM
|
0
|
13
|
3682
|
POST
|
Modifying the FeatureService to only allow Query and Sync solved the issue. Thank you. Cheers, James
... View more
05-06-2014
03:28 PM
|
0
|
0
|
469
|
POST
|
Hi, Thanks for your reply. At one point I added a line to explicitly set the syncModel property of the params to AGSGDBSyncModelPerGeodatabase: AGSGDBGenerateParameters *params = [[AGSGDBGenerateParameters alloc] initWithFeatureServiceInfo:self.gdbTask.featureServiceInfo];
params.syncModel = AGSGDBSyncModelPerGeodatabase;
...
This didn't seem to make any difference so I removed that line. The data is versioned. Cheers, James
... View more
05-06-2014
09:57 AM
|
0
|
0
|
469
|
POST
|
Hi, I modified (simplified) the OfflineEditingSample to try and generate a geodatabase from one of our Feature Services. I'm just trying to generate the geodatabase file and download it. Once I have that working I can move on to more fun stuff. Here is the code (lifted from the sample): AGSGDBGenerateParameters *params = [[AGSGDBGenerateParameters alloc] initWithFeatureServiceInfo:self.gdbTask.featureServiceInfo]; params.extent = self.mapView.visibleAreaEnvelope; params.outSpatialReference = self.mapView.spatialReference; NSArray* layers = @[@(1)]; // Just getting one layer for testing params.layerIDs = layers; [SVProgressHUD showWithStatus:@"Preparing to download"]; [self.gdbTask generateGeodatabaseWithParameters:params downloadFolderPath:nil useExisting:YES status:^(AGSResumableTaskJobStatus status, NSDictionary *userInfo) { //If we are fetching result, display download progress if (status == AGSResumableTaskJobStatusFetchingResult) { NSNumber* totalBytesDownloaded = userInfo[@"AGSDownloadProgressTotalBytesDownloaded"]; NSNumber* totalBytesExpected = userInfo[@"AGSDownloadProgressTotalBytesExpected"]; if(totalBytesDownloaded != nil && totalBytesExpected != nil){ double dPercentage = (double)([totalBytesDownloaded doubleValue]/[totalBytesExpected doubleValue]); [SVProgressHUD showProgress:dPercentage status:@"Downloading features"]; } } else { //don't want to log status for "fetching result" state because //status block gets called many times a second when downloading. //we only log status for other states here NSLog(@"Status: %@", AGSResumableTaskJobStatusAsString(status)); } } completion:^(AGSGDBGeodatabase *geodatabase, NSError *error) { if (error) { NSLog(@"error generating geodatabase: %@", error); [SVProgressHUD showErrorWithStatus:@"Error downloading features"]; } else { NSLog(@"downloaded geodatabase: %@", geodatabase.path); [SVProgressHUD showSuccessWithStatus:@"Finished downloading"]; } }]; Several status events are logged and eventually the completion block fires with an error. The NSLog output to the console looks like this: Status: Waiting for default parameters Status: Pre-processing job Status: Starting job Status: Polling Status: Polling Status: Polling Status: Polling Status: Polling Status: Done error generating geodatabase: Error Domain=NSCocoaErrorDomain Code=400 "The operation couldn???t be completed. " UserInfo=0x14f4f860 {NSURL=http://xxxxxxxx:6080/arcgis/rest/services/ElectricDistribution/FeatureServer/jobs/j51fbc2858ae648d89478daa6bd27b32b?f=json, responseJSON={ error = { code = 400; description = ""; }; lastUpdatedTime = 1399335065000; replicaName = "Ags_Fs"; resultUrl = ""; status = Failed; submissionTime = 1399335050000; }, NSLocalizedFailureReason=} Note: I replaced the location of the server in the error message with xxxxxxxx. It is hidden behind a firewall and access is occurring over a VPN. Can anyone shed some light on the error message. It's not telling me much. Also note: here are the Sync Capabilities on the Feature Service: Sync Capabilities: Supports Registering Existing Data: true Supports Sync Direction Control: true Supports PerLayer Sync: false Supports PerReplica Sync: true Supports RollbackOnFailure : false Supports Async: true Thanks in advance, James
... View more
05-05-2014
04:29 PM
|
0
|
4
|
4045
|
Title | Kudos | Posted |
---|---|---|
1 | 11-23-2016 09:46 AM | |
1 | 11-27-2016 11:36 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|