Brand new to ArcGIS, and I'm trying to create an iOS app to display a nautical chart. I can display a regular chart, I've downloaded a data set, and it's copied to my apps sandboxed documents directory. However, when I try and load it, the datasets are empty. I copied the code from the website -- as shown below. Any help would be greatly appreciated (the dummy string was to simply ensure the correct location is used -- the files are verified present)
thx
let dummy = "/Users/XXX/Library/Containers/D72BE5E6-A3C3-4718-ADA5-10E2B435BBEB/Data/Documents/ENC_ROOT/CATALOG.031"
let catalogURL = URL( fileURLWithPath: dummy /*catalogFile*/ )
self.encExchangeSet = AGSENCExchangeSet(fileURLs: [catalogURL])
self.encExchangeSet?.load { [weak self] (error) in
if let error = error {
print("Error loading exchange dataset \(error.localizedDescription)")
return
}
self?.encExchangeSet?.datasets.forEach {(dataset) in
^^^^self?.encExchangeSet?.datasets is nil