POST
|
Hi. I'm creating an iOS app that works with related layers/tables and have the following issue. When creating a new related feature the app must set a primary and foreign keys for an AGSGraphic. To do that I need to know which fields corresponds to these values. In the Flex ArcGIS API I found class named Relationship. It has properties named 'keyField', 'keyFieldInRelationshipTable'. I think it's what I need. But AGSRelationship class in iOS API has no these properties, so there's no way to find which fields in AGSGraphic attributes are primary and foreign keys. Am I correct and how can I solve this issue? Thank you.
... View more
11-26-2013
05:44 AM
|
0
|
1
|
806
|
POST
|
Yes, this is most obvious and tricky solution. I'm wondering whether it's possible to have two related layer on two different servers (they will have different URLs), because this approach won't work in this case. I still guess what URL for related layer exists somewhere deep in API, but it pretty hard to find 🙂 Anyway, thank you very much.
... View more
04-09-2013
04:12 PM
|
0
|
0
|
395
|
POST
|
Nimesh, of course. But in this sample URL of related layer is hardcoded. I'm wondering is it possible to programmatically get this URL somehow?
... View more
04-08-2013
05:51 PM
|
0
|
0
|
395
|
POST
|
Chris, thanks for response. But in delegate callback I get related features, from another layer or table, so I need an URL for that related layer/table. Here's my code:
// layer.URL = /rest/services/signs/FeatureServer/0
self.queryTask = [[AGSQueryTask alloc] initWithURL:layer.URL];
self.queryTask.delegate = self;
self.query = [AGSRelationshipQuery relationshipQuery];
self.query.outFields = [NSArray arrayWithObject:@"*"];
self.query.objectIds = [NSArray arrayWithObject:[NSNumber numberWithInt:68]];
self.query.relationshipId = 0;
self.query.returnGeometry = YES;
[self.queryTask executeWithRelationshipQuery:self.query];
...
// delegate method
- (void)queryTask:(AGSQueryTask *)queryTask operation:(NSOperation*)op didExecuteWithRelatedFeatures:(NSDictionary *)relatedFeatures
{
// queryTask.URL = /rest/services/signs/FeatureServer/0
// but should be: /rest/services/signs/FeatureServer/1
// since related features we got here belongs to table /1, not /0
NSLog(@"url: %@", queryTask.URL);
}
... View more
04-08-2013
04:35 PM
|
0
|
0
|
395
|
POST
|
I have an array of AGSGraphic I got via AGSRelationshipQuery and I'm wondering how can I find AGSFeatureLayer those AGSGraphics belongs to. I need this layer since I want to edit those graphics, download attachments for them, etc (using AGSFeatureLayer' methods such as updateFeatures, addFeatures and so on). Is there any way to do this? Please advice.
... View more
04-07-2013
07:58 AM
|
0
|
7
|
2320
|
POST
|
I got JSON document with search parameters (?) from database maintainer. It looks similar to JSON string in this post. As I understand, I can use this JSON to perform searches in my iOS application. But I have no idea how to do that. I found AGSFindParameters class, and it has method initWithJSON. So far I can suspect I should pass my JSON to this method and thus create parameters for AGSFindTask. However, AGSFindTask needs an URL for init method. I've tried to pass there URLs for feature layers, etc, but I always getting error "Invalid URL". What I'm doing wrong and how I should use JSON to do predefined searches?
... View more
11-28-2012
02:05 AM
|
0
|
1
|
460
|
POST
|
My app uses several feature layers with map view. Is it possible to manage AGSGraphic size according to map zoom value? For example, I need to make feature icons bigger when zooming in. Thanks.
... View more
11-27-2012
05:15 PM
|
0
|
1
|
2329
|
POST
|
Thanks, it worked. I have no idea why I couldn't find it by myself 🙂 Okay..let me first ask why are you creating a custom AGSPopupsContainerViewController? What is the need? The reason is I need to implement flexible custom UI with different set of options for each feature. "AGSPopups..." is not quite customizable for me.
... View more
09-13-2012
07:05 AM
|
0
|
0
|
243
|
POST
|
I'm making a custom class similar to AGSPopupsContainerViewController. This class will show feature attributes and allow user to edit them. I have access to AGSGraphic attributes and able to display them. But there are some attributes which displays incorrectly. These are enumerators (street names, and so on). As I could understand, I need a 'domain' for each attribute type and I should display attribute value according to this 'domain' rules. For example, we have attribute 'color' with value 1. So, somewhere must exist some kind of key/value dictionary with values (1, "red"), (2, "blue"), etc. And this way we can understand what value 1 mean "red". However I didn't find how to get these 'domains' and how to use them. Can anyone please explain how to obtain what I need?
... View more
09-09-2012
11:16 PM
|
0
|
2
|
579
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|