|
POST
|
Hi, I'm still on SDK 10.2.5. I use the below funcs to get subtype description domain: func getSubtypeDescriptionDomain(_ subtypeCode: Int, forDescriptionField subtypeDescriptionField: String, forGDBFeatureSourceInfo gdbFeatureSourceInfo: AGSGDBFeatureSourceInfo) -> AGSDomain { var domain: AGSDomain! for type in gdbFeatureSourceInfo.types { if((type as AnyObject).typeId as! Int == subtypeCode) { for (key, value) in (type as AnyObject).domains! { if(subtypeDescriptionField == key as! String) { domain = value as! AGSDomain return domain } } } } return domain } The subtypeCode is from the subtype field of a feature class that has subtype defined. The subtypeDescriptionField is the string field name to get domain from for the subtypeCode. The gdbFeatureSourceInfo is an instance of AGSFeatureLayer from a feature service or AGSGDBFeatureTable from a geodatabase downloaded in code from the feature service. This is to determine if a field is a subtype description field: func isSubtypeDescriptionField(_ subtypeCode: Int, forFieldName fieldName: String, forGDBFeatureSourceInfo gdbFeatureSourceInfo: AGSGDBFeatureSourceInfo) -> Bool { var subtypeDescriptionField = false for type in gdbFeatureSourceInfo.types { if((type as AnyObject).typeId as! Int == subtypeCode) { for (key, _) in (type as AnyObject).domains! { if(fieldName == key as! String) { subtypeDescriptionField = true return subtypeDescriptionField } } } } return subtypeDescriptionField } Hope it helps. Shimin
... View more
04-08-2018
05:05 PM
|
1
|
0
|
2516
|
|
POST
|
Many thanks Mark and the info you provided is exactly what I'm looking for!!! Any other migration guide documenting the changes would be a big help besides the document (https://community.esri.com/community/developers/native-app-developers/arcgis-runtime-sdk-for-ios/blog/2017/02/24/migrating-your-ios-apps-to-arcgis-runtime-v1000 ) which is a high level guide and th.e deprecated list Cheers, Shimin
... View more
03-20-2018
03:12 PM
|
0
|
4
|
1166
|
|
POST
|
Hi, Our apps are now still on the SDK 10.2.5 and we are thinking to migrate to the SDK 100.2.1... In our apps there is a key component TOC (table of content) that is built based on the TOC sample code in the SDK 10.2.x. Layer loading and displaying and feature editing etc are all around the TOC and our users are so used to it. It is a must to have after migration. Looking at the SDK 100.2.1, I couldn't find any classes that could be used to build the TOC... Is there anything in the SDK 100.x that is similar or equivalent to the classes AGSMapContentsTree, AGSMapContentsLayerInfo and AGSMapContentsLegentElement in the SDK 10.2.5? If there is none currently, any plan to add in the future? Thanks, Shimin
... View more
03-19-2018
09:28 PM
|
0
|
6
|
1396
|
|
POST
|
Hi All, Our app uses gps location to capture point features and the accuracy of the point locations has been acceptable until iOS 11. After iOS 11, the point location could be 2 or 3 km away from the actual location in some areas but not in all areas. Has anybody else had this problem and any solutions? Xcode 8.3.3, Swift 3.2 and ArcGIS Runtime SDK for iOS 10.2.5. Thanks, Shimin
... View more
11-28-2017
08:25 PM
|
0
|
0
|
478
|
|
POST
|
With a faster Internet (20 mbps), still no luck with the 'pod repo update': Shimins-MBP:FCMapApp2 shiminc$ pod repo update Updating spec repo `master` Performing a deep fetch of the `master` specs repo to improve future performance $ /usr/bin/git pull --ff-only fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': transfer closed with outstanding read data remaining [!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose` However, with the 'pod update', successfully installed the beta idk: Shimins-MBP:FCMapApp2 shiminc$ pod update Update all pods Updating local specs repositories CocoaPods 1.1.0.rc.3 is available. To update use: `sudo gem install cocoapods --pre` [!] This is a test version we'd love you to try. For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.1.0.rc.3 Analyzing dependencies Pre-downloading: `SVProgressHUD` from `https://github.com/SVProgressHUD/SVProgressHUD.git` Downloading dependencies Installing ArcGIS-Runtime-SDK-iOS 100.0-beta3 (was 10.2.5) Using Dropbox-iOS-SDK (1.3.13) Installing IQKeyboardManagerSwift 4.0.6 (was 4.0.2) Installing SVProgressHUD 2.0.3 (was 2.0.3) Generating Pods project Integrating client project Sending stats Pod installation complete! There are 4 dependencies from the Podfile and 4 total pods installed. Thank you for your help. Much appreciated. Cheers, Shimin
... View more
10-17-2016
03:49 AM
|
0
|
0
|
1308
|
|
POST
|
Yes I did. Today tried again and got the same error. garrytoshiba:FCMapApp2 shiminc$ pod repo update Updating spec repo `master` Performing a deep fetch of the `master` specs repo to improve future performance [!] /usr/bin/git fetch --unshallow error: RPC failed; result=56, HTTP code = 200 fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed garrytoshiba:FCMapApp2 shiminc$ It took very long to get the error...
... View more
10-16-2016
05:11 PM
|
0
|
1
|
1308
|
|
POST
|
Thanks Michael. Tried your suggestions and it did not work either. However, I tried a different database from a different feature service and it worked. Maybe a database specific problem... Thanks again
... View more
10-13-2016
07:13 PM
|
0
|
0
|
942
|
|
POST
|
I did it in a folder on my desktop computer. Tried again with the same problem... Thanks anyway.
... View more
10-13-2016
05:39 PM
|
0
|
2
|
942
|
|
POST
|
Hi Michael, How do you convert the delta geodatabase to FGDB? I tried the tool "Copy Runtime Geodatabase to File Geodatabase" in 10.4.1 and 10.3.1 without any luck... The error message just said unable to copy and suggested contacting Esri technical support for any input data issue. Thanks, Shimin
... View more
10-13-2016
05:02 PM
|
0
|
1
|
942
|
|
POST
|
I created two identical fresh Xcode projects and tried to install pod 'ArcGIS-Runtime-SDK-iOS' and pod 'ArcGIS-Runtime-SDK-iOS', '100.0-beta3' in the projects separately. With the pod 'ArcGIS-Runtime-SDK-iOS', the pod install went ok and installed 10.2.5: Last login: Tue Oct 11 13:27:28 on ttys000 garrytoshiba:~ shiminc$ cd Projects/Test/CocoaPodsTest garrytoshiba:CocoaPodsTest shiminc$ pod install Analyzing dependencies Downloading dependencies Using ArcGIS-Runtime-SDK-iOS (10.2.5) Generating Pods project Integrating client project Sending stats Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed. But the install of pod 'ArcGIS-Runtime-SDK-iOS', '100.0-beta3' failed with the save error as before: Last login: Tue Oct 11 13:44:25 on ttys000 garrytoshiba:~ shiminc$ cd Projects/Test/CocoaPodsTest1 garrytoshiba:CocoaPodsTest1 shiminc$ pod install Analyzing dependencies [!] Unable to satisfy the following requirements: - `ArcGIS-Runtime-SDK-iOS (= 100.0-beta3)` required by `Podfile` None of your spec sources contain a spec satisfying the dependency: `ArcGIS-Runtime-SDK-iOS (= 100.0-beta3)`. You have either: * out-of-date source repos which you can update with `pod repo update`. * mistyped the name or version. * not added the source repo that hosts the Podspec to your Podfile. Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default. I also did a search in the https://cocoapods.org and only found the SDK 10.2.5 and couldn't find the version 100.0-beta3. So my question is: does the beta version 100.0-beta3 exist at all? Or what should I do to be able to install the Quartz beta3 of the ArcGIS Runtime SDK using CocoaPods? Any help is much appreciated. Shimin
... View more
10-10-2016
08:05 PM
|
0
|
0
|
1308
|
|
POST
|
Thanks Dan for your reply. I revisited those documents you listed. My Macbook has Xcode 7.3, OS XEI Capitan 10.11.6 and 2.6 GHz Intel Core i7 processor which should meet the system requirements for developing with the Quartz SDK.
... View more
10-10-2016
02:20 PM
|
0
|
0
|
1308
|
|
POST
|
Hi All, I'm following the instructions of the "Get started: Install and setup" in the online documentation to install Quartz SDK Beta 3 using CocoaPods and encountered this problem: garrytoshiba:FCMapApp2 shiminc$ pod install Analyzing dependencies [!] Unable to satisfy the following requirements: - `ArcGIS-Runtime-SDK-iOS (= 100.0-beta3)` required by `Podfile` None of your spec sources contain a spec satisfying the dependency: `ArcGIS-Runtime-SDK-iOS (= 100.0-beta3)`. You have either: * out-of-date source repos which you can update with `pod repo update`. * mistyped the name or version. * not added the source repo that hosts the Podspec to your Podfile. Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default. My podfile looks like this: # Uncomment this line to define a global platform for your project source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' target 'FCMapApp' do # comment this line if you're not using Swift and don't want to use dynamic frameworks' use_frameworks! pod 'Dropbox-iOS-SDK' pod 'SVProgressHUD', :git => 'https://github.com/SVProgressHUD/SVProgressHUD.git' pod 'ArcGIS-Runtime-SDK-iOS', '100.0-beta3' pod 'IQKeyboardManagerSwift' target 'FCMapAppTests' do inherit! :search_paths # Pods for testing end end Actually I'm trying to upgrade a workspace that works fine with the SDK 10.2.5 by changing the line "pod 'ArcGIS-Runtime-SDK-iOS'" to "pod 'ArcGIS-Runtime-SDK-iOS', '100.0-beta3'". Can anybody shed any light on what I'm doing wrong please? Many thanks. Shimin
... View more
10-10-2016
12:08 AM
|
0
|
6
|
2517
|
|
POST
|
Get it to work using line: AGSCredential *credential = [[AGSCredential alloc]initWithUser: userName password: password authenticationType:AGSAuthenticationTypeToken tokenUrl:[NSURL URLWithString:tokenURL]]; Cheers.
... View more
08-23-2016
09:34 PM
|
0
|
0
|
549
|
|
POST
|
Hi All, I tried the below code to load secure feature service layers from our ArcGIS Server hosted in Amazon Web Service and got the error "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 310.)". NSString *userName = @"TestUser12345"; NSString *password = @"TestUser12345"; AGSCredential *credential = [[AGSCredential alloc]initWithUser: userName password: password]; NSString *url = @"http://awsgis.fcnsw.com.au/arcgis/rest/services/Test/HFDPlanning_Test/FeatureServer"; //NSString *url = @"http://203.8.108.10/arcgis/rest/services/Test/HFDPlanning_Test/FeatureServer"; self.gdbTask = [[AGSGDBSyncTask alloc]initWithURL:[NSURL URLWithString:url] credential:credential]; __weak GenericModule102ViewController *weakSelf = self; self.gdbTask.loadCompletion = ^(NSError* error) { if(error) { NSLog(@"%@", error.localizedDescription); } for (AGSMapServiceLayerInfo* info in weakSelf.gdbTask.featureServiceInfo.layerInfos) { NSURL* url = [weakSelf.gdbTask.URL URLByAppendingPathComponent:[NSString stringWithFormat:@"%lu",(unsigned long)info.layerId]]; AGSFeatureLayer* fl = [AGSFeatureLayer featureServiceLayerWithURL:url mode:AGSFeatureLayerModeOnDemand credential:credential]; fl.outFields = @[@"*"]; fl.delegate = weakSelf; fl.editingDelegate = weakSelf; [weakSelf.mapView addMapLayer: fl withName:info.name]; } }; The code worked fine if the feature service was not secured and also worked ok with the same secured feature service on our internal ArcGIS Server (the commented-out url above). Could anybody shed any light on what I need to do to get it to work? Thanks, Shimin
... View more
08-23-2016
12:47 AM
|
0
|
1
|
1553
|
|
POST
|
1. Sorry and try this line: currentQuery.geometry=mappoint; 2. Actually the features you click should be stored in the third argument: graphics of the mapview touch delegate method. I think you just need to loop through the graphics and locate the one you want to display...
... View more
04-08-2016
12:31 AM
|
0
|
0
|
1634
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-08-2022 01:10 PM | |
| 1 | 09-19-2022 09:21 PM | |
| 1 | 05-23-2022 06:49 PM | |
| 1 | 03-24-2022 05:49 PM | |
| 1 | 10-31-2021 03:16 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-29-2025
01:58 AM
|