POST
|
Hi, Which version of the SDK are you using? Does it crash as soon as the app launches? Suganya
... View more
09-08-2015
10:47 AM
|
0
|
0
|
677
|
POST
|
Thaviti, To answer your questions, 1. The symbology would be the same as your service 2. Attachments are the best way to go if your app requires saving images associated with features. attachments will be not synced if the app is closed before sync operation. (read from online help). Changes are stored in a local geo database until you call sync. Both feature and attachment edits are synced when you sync your local geodatabase. This section highlights how you can sync changes to/from server. Suganya
... View more
08-04-2015
12:58 PM
|
1
|
1
|
447
|
POST
|
A 'loaded' state of the feature service table means that the service is available/authenticated and the service info (meta data) is available. The query to fetch features is sent only when the layer is rendered on the map. Hope this helps, Suganya
... View more
04-16-2015
09:59 AM
|
0
|
0
|
239
|
POST
|
Can you verify a few things? 1. Using popups to edit existing feature, can you check if popupsContainer:readyToEditGraphicGeometry:forPopup: is implemented and has the following code self.sketchLayer.geometry = geometry; 2. Using popups to create new feature: Implement popupsContainer:wantsNewMutableGeometryForPopup: and return a correct geometry based on the layer to be edited and its spatial reference. 3. When you load custom symbols, verify mainSymbol is not nil during execution. 4. Instead of this, _featureSketchLayer = [[AGSSketchGraphicsLayer alloc]initWithGeometry:nil]; you may initialize the sketch layer with a geometry type of your layer, and the spatial reference of your map. The map should be loaded at this point, so mapViewDidLoad: method is a good place to test. self.polyline = [[AGSMutablePoint alloc] initWithSpatialReference:self.mapView.spatialReference]; self.sketchGraphicsLayer = [[AGSSketchGraphicsLayer alloc] initWithGeometry:self.point]; Alternatively, you can initialize the sketch layer right in the beginning, and when you start sketching assign an empty geometry (for new features), or the current feature’s geometry (for existing features). You may also check out a related sample here. If none works, can you share a simple project that reproduces the issue? Thanks, Suganya
... View more
12-04-2014
10:20 AM
|
0
|
1
|
312
|
POST
|
Colin, I believe this is related to the ‘Invalid JSON’ error here. Let us know if you have more questions Thanks, Suganya
... View more
12-03-2014
11:31 AM
|
0
|
2
|
769
|
POST
|
Colin, There are a few features that are not currently supported by AGSFeatureServiceTable including online querying and editing for non-spatial tables. It is recommended to use AGSFeatureLayer instead. This AGSFeatureLayer model provides additional capabilities that are currently not supported by the AGSGDBFeatureServiceTable, including the ability to: Query and edit layers created from nonspatial tables (as opposed to spatial layers) in a feature service Query the related tables of a service layer Track edits and control editing privileges on a per-user basis View and work with time-aware layers and services View and work with versioned layers and services Related doc here Hope this helps Thanks, Suganya
... View more
12-03-2014
11:02 AM
|
0
|
1
|
427
|
POST
|
In general, a related records table is treated an offline feature table inside a geodatabase. Let's say you have a service with a feature service, and a related table 1. Creating and downloading the geodatabase: You treat them two separate layers in the service. For instance, your generate params might look like below where layerID 0 is your spatial layer, and layerID 1 being related table. You only need one AGSGDBSyncTask object, and get back one AGSGDBGeodatabase object AGSGDBGenerateParameters *generateParams =[[AGSGDBGenerateParameters alloc] initWithExtent:_replicaExtent layerIDs:@[@0,@1]]; 2. Once you get AGSGDBGeodatabase object, you would have two tables from which you create AGSGDBFeatureTable objects 3. Querying related records: You can to use AGSRelationshipQuery (similar to online workflow) which will be called on the (spatial) table. [spatialTable queryRelatedFeaturesWithParameters:relationshipQuery completion:^(NSDictionary *results, NSError *error) { /*Enumerate results dictionary. Keys are Object IDs of spatial table, and iterate the cursor. For instance, AGSGDBQueryResultCursor *cursor = [results objectForKey:[NSNumber numberWithUnsignedInteger:572]]; AGSGDBFeature *feature = cursor.currentFeature; //Related record feature */ }]; 4. Editing: Once you have the related records for a feature through querying, you can display them in a popup, edit and save. An online example for presenting popups is shown in this sample here, and you can have a similar workflow. (In your question, I think you mentioned AGSGDBFeatureServiceTable instead of AGSGDBFeatureTable. AGSGDBFeatureServiceTable is not used for offline sync workflow ) Hope this helps, Suganya
... View more
12-02-2014
11:53 AM
|
0
|
4
|
769
|
POST
|
Beate, In order to include the test.gdb in bundle, right click the bundle, and "show package contents". You can then paste the gdb in. NSString *gdbPath = [ arcgis_bundle pathForResource:@"test"ofType:@"geodatabase"]; If you are placing the gdb in a folder (within the bundle), make sure to use this method NSString *gdbPath = [ arcgis_bundle pathForResource:@"test"ofType:@"geodatabase" inDirectory:@"test_gdb"]; Option2: This did not work because only a symbolic link is placed. The above is the screenshot from the test project submitted by support based on the bug reported, and will not work.Copying Yue Wu to confirm if that's not the case. Please delete the link, and place the gdb instead as shown below. That should work. Can you try these, and let us know how it goes? Thanks, Suganya
... View more
12-02-2014
10:38 AM
|
0
|
1
|
473
|
POST
|
Beate, Upon checking the bug status, it was actually fixed in 10.2.4. It appears that the symbolic link that you have in your project is causing the error. Can you try the following, and see if it resolves the issue? - Access the test gdb inside the ArcGIS.bundle directly without the symbolic link. NSBundle* arcgis_bundle = [NSBundle bundleWithPath:[[NSBundle mainBundle]pathForResource:@"ArcGIS" ofType:@"bundle"]]; NSString *gdbPath = [ arcgis_bundle pathForResource:@"test" ofType:@"geodatabase" inDirectory:@"test_gdb"]; (OR) - Place the test gdb outside ArcGIS.bundle, and access it with your current code NSString *gdbPath = [[NSBundle mainBundle]pathForResource:@"test" ofType:@"geodatabase"]; Thanks, Suganya
... View more
11-24-2014
03:13 PM
|
0
|
5
|
473
|
POST
|
All, Here's a workaround By implementing popupsContainer:wantsToShowViewController:ofType:fromViewController:atRect: method of AGSPopupsContainerDelegate, you can present popupsContainer's different view controllers. Check if the view about to be presented in UIImagePicker, and delay the presentation. This ensures the UIAlertController that displays the action sheet in iOS8 is dismissed before the image picker is displayed. The actual issue will be fixed in the next release of the SDK.
- (void) popupsContainer: (id< AGSPopupsContainer >) popupsContainer
wantsToShowViewController: (AGSViewController *) svc
ofType: (AGSPopupViewType) viewType
fromViewController: (AGSViewController *) fvc
atRect: (CGRect) rect {
svc.modalPresentationStyle = UIModalPresentationFormSheet; //Your preferred presentation style
if (viewType == AGSPopupViewTypeUIImagePicker) {
//Delay runloop so UIAlertController is dismissed before image picker is presented.
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
[fvc presentViewController:svc animated:YES completion:^{
NSLog(@"Presenting Image Picker");
}];
}];
}
else {
//This is necessary as you will have to present all other view controllers too.
[fvc presentViewController:svc animated:YES completion:^{
}];
}
}
//You will have to implement this method to dismiss the view controllers.
- (void) popupsContainer: (id< AGSPopupsContainer >) popupsContainer
wantsToHideViewController: (AGSViewController *) vc
ofType: (AGSPopupViewType) viewType {
[vc dismissViewControllerAnimated:YES completion:^{
}];
}
Thanks, Suganya
... View more
11-17-2014
03:14 PM
|
1
|
1
|
611
|
POST
|
This issue is being looked into - I'll post an update soon. Thanks, Suganya
... View more
11-14-2014
02:47 PM
|
0
|
0
|
611
|
POST
|
You are right with identifying the cause. We are aware of this issue, and it will be fixed with the next release. Current workarounds are to either use iTunes File Sharing or copy the geodatabase to the documents folder of the device -Suganya
... View more
11-12-2014
01:22 PM
|
0
|
0
|
473
|
POST
|
Andre, Did you get a chance to send the geodatabase? I've not received it yet, and wanted to make sure it's not a glitch with geonet. Also as Yue Wu suggests, make sure the spatial reference of base map and geodatabase are same. Suganya
... View more
08-14-2014
04:05 PM
|
0
|
2
|
332
|
POST
|
Your code looks ok to me. Can you share the following information? The .geodatabase file that was generated from runtime content. You can send it over as a 'Private Message' if you don't wish to share it in the post. ArcMap version What is the value of 'error' value here? AGSGDBGeodatabase *gdb = [[AGSGDBGeodatabase alloc] initWithPath:pathGDBStringerror:&error]; Is your data versioned?
... View more
07-21-2014
03:46 PM
|
0
|
4
|
761
|
POST
|
To answer your question, yes you should be able to show a .geodatabase file created from Runtime Content without a basemap. Can you also share the code you used to display the content?
... View more
07-14-2014
11:36 AM
|
0
|
9
|
761
|
Title | Kudos | Posted |
---|---|---|
1 | 08-04-2015 12:58 PM | |
1 | 01-08-2019 03:59 PM | |
1 | 05-16-2016 11:22 AM | |
1 | 11-19-2019 11:29 AM | |
1 | 11-28-2016 10:01 AM |
Online Status |
Offline
|
Date Last Visited |
06-05-2023
05:23 PM
|