|
POST
|
Hi, Michael - You're right, the SDK does not give you access to the GlobalID field. We originally made that field inaccessible because it is something that is managed by the underlying geodatabase model, and we didn't think it would be useful to application developers. But as you described, there valid cases where one needs it to manually establish relationships, or uniquely query features. The GlobalID field will be accessible in the next release of the SDK. _ Divesh
... View more
08-18-2014
12:21 PM
|
1
|
2
|
1761
|
|
POST
|
Michael - Did you use ArcMap to create the runtime geodatabase? What version were you using? Would it be possible for you to privately share the gdb with us so we can investigate?
... View more
08-08-2014
12:02 PM
|
0
|
4
|
1254
|
|
POST
|
Unfortunately, there isn't a way to get the layer ID currently. We can look into adding it for an upcoming release. How do you plan to use it? If you used the AGSGDBSyncTask to generate the geodatabase, the task has a property called featureServiceInfo, which in turn has an array of layer infos for each layer in the service. This layer info contains both name and ID of the sub layers. In the meantime, if you already happen to have the layer ID and want to get the corresponding feature table, you can use [AGSGDBGeodatabase featureTableForLayerID:]
... View more
08-05-2014
09:45 AM
|
0
|
1
|
681
|
|
POST
|
How did you generate the tpk file? If you used ArcMap, what version did you use? The stack trace indicates there was some problem parsing the json in the tpk file, specifically the legend info. Would it be possible for you to share the tpk so I can take a look?
... View more
07-30-2014
10:53 AM
|
0
|
0
|
452
|
|
POST
|
That depends upon the mode of the feature layer. In snapshot mode, all the features (up to the max limit supported by the service, defaults to 1000) are fetched. In OnDemand mode, only those features that fall within the map's current extent are fetched; provided you have added the layer to the map. If you don't add the layer to the map, the layer won't know the map's extent, and hence no features will be fetched. In selection mode, only those features that satisfy the selection query will be fetched. Detailed info on the modes here - ArcGIS Feature layer—ArcGIS Runtime SDK for iOS | ArcGIS for Developers
... View more
07-30-2014
10:49 AM
|
0
|
0
|
1236
|
|
POST
|
Sounds like you need to publish that raster data as an Image Service (not Map Service). You can display it in your ios app using AGSImageServiceLayer. To get pixel values at a particular location, you'll need to perform an identify operation (using AGSImageServiceIdentifyTask)
... View more
07-28-2014
11:32 AM
|
0
|
1
|
826
|
|
POST
|
The feature layer has a property called graphics (that it inherits from the graphics layer). This property contains all the features that are currently being displayed on the map. Since you say your features will not be drawn on the map, the property is understandably empty. The only way to get features that are not drawn on the map is to query.
... View more
07-28-2014
11:27 AM
|
0
|
0
|
965
|
|
POST
|
My question is what does this setting do exactly? It shouldnt change the edit settings of the layer itself right?
This setting stores some information in the webmap saying that the author has disabled editing on the layer. The iOS SDK, when opening the webmap, honors this setting and creates a feature layer which reports that it doesn't support editing (the canCreate, canUpdate, and canDelete properties on AGSFeatureLayer returns NO). Of course, the backend feature service still supports editing (it remains unmodified), but since the feature layer chooses to not expose this onwards, things like popups (which inspect the feature layer's properties) don't provide the option to edit features in that layer. If you were to not use the feature layer instance returned by the web map in webMap:didLoadLayer: delegate method, and instead create your own feature layer pointing to the URL of the feature service directly, your layer would report that it IS capable of editing.
... View more
07-28-2014
11:21 AM
|
0
|
2
|
1236
|
|
POST
|
Unfortunately, the API does not provide the ability to discard local edits on a feature by feature basis. A good one for ideas.arcgis.com though
... View more
07-24-2014
03:08 PM
|
0
|
0
|
560
|
|
POST
|
Yes, memory is used whenever you pan/zoom the map as new tiles are added, but memory is also freed as old tiles are removed. So you would see a churn in the app's object graph, that's expected. I used Allocations in Instruments to do a generational analysis, where i would navigate the map, then mark objects on the heap as a new generation, navigate the map, mark objects as new gen, over and over again. I would see that as I went on marking new generations, the size of old generations reduce close to 0 bytes. This shows that as the app is allocating new memory, it is also relinquishing older objects that it no longer needs. I did find one or two cases of leaked URL connection objects, and we will look into that, but nothing serious enough to cause a crash or show a significant memory growth over time.
... View more
07-24-2014
11:11 AM
|
1
|
0
|
788
|
|
POST
|
I've not been able to repro the crash you report. I used Instruments to monitor the leaks, and all I saw was a few URL related classes being leaked, and that too only once in a while. Which objects do you see being leaked? The screenshot you shared doesn't show any leak, it shows a stack trace of the functions used to update the map display periodically
... View more
07-23-2014
04:11 PM
|
0
|
2
|
788
|
|
POST
|
Yes, you can modify the geometry of that feature using AGSGeometryEngine cutGeometry:withCutter:
... View more
07-22-2014
04:37 PM
|
0
|
2
|
734
|
|
POST
|
Do you have any offline data (local tiled layers displaying tile packages, or feature table layers displaying features from a runtime geodatabase) in the map? If not, what's in the map? Does the map go blank when you're navigating it in airplane mode?
... View more
07-22-2014
11:53 AM
|
0
|
4
|
788
|
|
POST
|
The esri elevation services are free (they don't utilize credits) but they can only be accessed through an ArcGIS Online Organization subscription. More details in this blog post - Introducing Esri’s World Elevation Services | ArcGIS Blog If your apps user has an org subscription account, you can use the AGSOAuthLoginViewController class in the SDK to allow the end user to log in to their account. This class returns to you an AGSCredential object when the user successfully logs in. See OAuth Login Sample Once you have the credential, you can use it to open web maps that contain elevation layers, or you can load the elevation layers directly and add them to the map view as AGSImageServiceLayer objects
... View more
07-22-2014
11:44 AM
|
1
|
0
|
688
|
|
POST
|
Yes, it is possible, although some things might be easier if the layer was added to the map view. If you don't add it to the map, you will probably need to instantiate the feature layer in either snapshot mode, or selection mode. This doc, ArcGIS Feature layer , contains some information about the different modes.(In contrast, the OnDemand mode is better suited for when you add the layer to the map, in which case the layer will retrieve features from the service that fall within the map's view extent.) Without adding the layer to the map, the features won't display, and users won't be able to tap on a feature to begin editing. Your app will need to handle this workflow a different way or write some code to provide this experience. To edit a specific feature, you will first need to query it using [AGSFeatureLayer queryFeatures:]. Once you have a reference to the feature, you can modify its attributes/attachments/geometry, and then send the updates back to the service using [AGSFeatureLayer applyEditsWithFeaturesToAdd:toUpdate:toDelete: ] This sample (RelatedRecordEditingSample) uses this pattern to edit records (incident notes) that are related to a feature layer (incidents). The incident notes are pure tabular data and cannot be visualized on a map, hence the feature layer that is used to edit them is not added to a map. (See NotesViewController.m )
... View more
07-22-2014
11:01 AM
|
0
|
1
|
775
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-02-2025 12:39 PM | |
| 1 | 10-01-2024 12:36 PM | |
| 1 | 05-10-2024 02:32 PM | |
| 1 | 07-10-2023 11:12 AM | |
| 1 | 06-15-2023 09:59 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|