|
POST
|
When I init a AGSGDBFeatureServiceTable and call the loadCompletion block, inside the block when I print out the number of features sometimes I get the right number and sometimes I get zero. AGSGDBFeatureServiceTable.loaded is YES. Any ideas? Code: self.fServiceTable = [[AGSGDBFeatureServiceTable alloc] initWithServiceURL:url credential:self.credential
spacialReference:self.mapView.spatialRefernece];
self.fServiceTable.loadCompletion = ^(NSError *error) {
NSLog(@"Count = %lu", (unsigned long)weakSelf.fServiceTable.featureCount);
};
... View more
04-07-2015
01:36 PM
|
0
|
1
|
4271
|
|
POST
|
If i create a AGSGDBFeatureServiceTable from a rest service, it doesnt populate until I create a AGSFeatureTableLayer and add the layer to the map. Can i populate the AGSGDBFeatureServiceTable without adding the layer to the map? Thanks Edit: I cant even query a agsgdbfeatureservicetable, i always get zero results.
... View more
02-10-2015
02:17 PM
|
0
|
1
|
4160
|
|
POST
|
If I install the app on the phone, instead of running it through xCode it doesnt crash. Must be an xcode problem.
... View more
01-08-2015
11:52 AM
|
0
|
1
|
577
|
|
POST
|
Here is a picture of the stack track. Any ideas what could cause this? It happens every other time I load the app.
... View more
01-08-2015
11:38 AM
|
0
|
2
|
4594
|
|
POST
|
So Im using queryResultsWithParameters to get the features from the layer. This works, and I can access the features. Thanks
... View more
01-06-2015
01:25 PM
|
0
|
0
|
602
|
|
POST
|
Hello all, So I've been using AGSFeatureLayer along with AGSGraphic to add/edit/delete features from layers. for(AGSGraphic *graphic in self.featureLayer)... This has worked great, letting me cycle through the feature layer and find graphics I need/want to change. Now that I have been working on getting the app to run offline, I found that I need to create a geodatabase with feature tables. I created a geodatabase, a tpk file, etc. When offline, I can load the layers from the geodatabase, they come in as AGSFeatureTables in geodatabase.featureTables. Then I use AGSFeatureTableLayer to add them to the map. My problem comes from AGSFeatureLayer has a graphics layer, while AGSFeatureTableLayer doesnt. When I need to get a feature, am I suppose to use the queryWithResults function on AGSFeatureTable everytime? Thanks for any advice/help.
... View more
01-06-2015
10:35 AM
|
0
|
3
|
5127
|
|
POST
|
Hey Robert, Thanks for the reply. Im actually doing this in objective-c on the iphone. I exportTileCacheWithParameters from a URL. On the phone itself, the tpk file is getting saved, but as 10RandomString.tpk, 1234567890.tpk What im doing right now is going through the document path, finding the tok file, and renaming it. Seems to work for now.
... View more
12-29-2014
11:48 AM
|
0
|
1
|
819
|
|
POST
|
When creating a TPK file from exportTileCache, I can't set the name and get a random number string. This makes it impossible to locate that TPK file again in the documents directory when I want to load it. Any ideas? Thanks
... View more
12-29-2014
11:04 AM
|
0
|
4
|
4006
|
|
POST
|
When the app is online, I create and save a geodatabase to disk. When I NSLog the path, it looks like this: /var/mobile/Applications/4401076A-A1AA-4CFE-AF76-09FFDEE98B82/Documents/1300467805.geodatabase When I put the phone in airplane mode and start the app again, i check for an internet connection and if none try and load the geodatabase. I use initWithPath. AGSGDBGeodatabase *geo = [[AGSGDBGeodatabase alloc] initWithPath:geodatabasePath error:&error]; geodatabasePath comes from NSUserDefaults when the geodatabase is created. I keep getting the error:
Error Domain=com.esri.arcgis.runtime.error Code=10003
"Geodatbase at path '/var/mobile/Applications/4401076A-A1AA-4CFE-AF76-09FFDEE98B82/Documents/1300467805.geodatabase' not found." UserInfo=0x165a5d70 {NSLocalizedDescription=Geodatbase at path '/var/mobile/Applications/4401076A-A1AA-4CFE-AF76-09FFDEE98B82/Documents/1300467805.geodatabase' not found.} Any ideas? Thanks
... View more
12-22-2014
09:46 AM
|
0
|
1
|
3588
|
|
POST
|
I have been testing on the simulator over an ethernet connection. Also have been testing on iPhone/iPad devices over a cellular network, hooked up to XCode to report errors. Also have been running over a wi-fi hotspot through Verizon. There seems to be no pattern to the errors. Sometimes everything will work perfect for a couple hours. Then sometimes a few update calls wont execute and - (void)featureLayer:(AGSFeatureLayer *)featureLayer operation:(NSOperation *)op didFeatureEditsWithResults:(AGSFeatureLayerEditResults *)editResults will return a editResults.success of false. I've been trying to replicate the error and use - (void) featureLayer:(AGSFeatureLayer *)featureLayer operation:(NSOperation *)op didFailFeatureEditsWithError:(NSError *)error { NSLog(@"Error for %@", featureLayer.name); NSLog(@"%@", [error localizedDescription]); NSLog(@"%@", [error userInfo]); } to get some information. If/When it errors again I will post the results of the didFail NSLogs. Thanks for your help.
... View more
08-29-2014
03:55 PM
|
0
|
0
|
1024
|
|
POST
|
I keep getting this error when adding features. I have two feature layers, and I am adding and updating features on them from an iOS app. When I call add/update/deleteFeatures and check the didFailFeatureEditsWithError, the error is: Illegal Start of Token. The interesting thing is that some requests to update work, and some fail. In the controller I am calling 3-4 updates. Any ideas what this means? Thanks
... View more
08-29-2014
08:47 AM
|
0
|
5
|
8525
|
|
POST
|
Ahh, that would make sense. It was an interesting error. I would addGraphic, addFeature, updateFeature in that order and sometimes the add would work, and sometimes the update would overwrite it. I ended up making a new graphic, and assigning the attributes one by one as I was getting frustrated. If I decide to fix this, I should do this? AGSGraphic *new = [[AGSGraphic alloc] initWithJSON:[old encodeToJSON];; new setAttributeToNullForKey:[@"GlobalId"]; and OBJECTID Correct? Thanks for the reply
... View more
08-28-2014
09:53 AM
|
0
|
0
|
909
|
|
POST
|
Displaying the graphic isn't the problem I am having. The problem is when I update the graphic, the copy is getting updated as well. AGSGraphic *one = [[AGSGraphic alloc] init]; [one setAttribute:@"foo" forKey:@"Name"]; AGSGraphic *two = [[AGSGraphic alloc] initWithJSON:[one encodeToJSON]; [two setAttribute:@"bar" forKey@"Name"]; [featureLayer addGraphic:two]; [featureLayer addFeatures:@[two]; [featureLayer updatesFeatures:@[one]]; When I check featureLayer.graphics I have two copies for one, and no two graphic. When I check the database, two is there. If I close the app, and reload the webMap, into mapView, and get the layer again, the graphics are correct. Im just confused on why I have two copies and one, and how I avoid this. I tried [featureLayer refresh] to no avail. Thanks
... View more
08-27-2014
02:54 PM
|
0
|
2
|
909
|
|
POST
|
Im having weird issues with copying graphics. AGSGraphic *first = ..... AGSGraphic *second = [[AGSGraphic alloc] initWithJSON:[first encodeToJSON]; If I change some of the attributes of both first and second, update first, and add second to the feature layer, because second has the same globalID as first, I get two instances of the first graphic on the feature layer. If I check the database, the features are all correct, and the second graphic did get added and the first got updated correctly. I have to reload the layers in the app to see the changes. Any ideas what could be going wrong? I checked the graphics, when i copy the first graphic and make a copy/second graphic they have the same globalID. Thanks
... View more
08-27-2014
01:37 PM
|
0
|
4
|
4490
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 12-20-2016 11:56 AM | |
| 1 | 08-19-2014 10:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|