In ArcGIS Server 10.2, there is a method named lookupFeatureWithObjectId in the class AGSFeatureLayer.h.

However, there is no such method in ArcGIS Runtime SDK for iOS version 100.x.

How can i manipulate such functionality using new version of ArcGIS Runtime SDK for iOS?

  • 2
    My understanding is that the latest version of ArcGIS Server is 10.6. Where have you found ArcGIS Server version 100.x? – PolyGeo Feb 6 '18 at 8:35
  • @PolyGeo - He's talking about the ArcGIS Runtime SDK for iOS 100.2 – GISGe Feb 6 '18 at 9:24
  • 1
    @GISGe I'll assume that you are right and have edited the question accordingly. – PolyGeo Feb 6 '18 at 9:33
  • @PolyGeo thanks.. yes it's ArcGIS Runtime SDK for iOS. – Muruganandham Kuppan Feb 6 '18 at 13:57
  • @GISGe, thanks .Yes, it's ArcGIS Runtime SDK for iOS. – Muruganandham Kuppan Feb 6 '18 at 13:58

With knowing only very little of your problem, i'll try to answer your question as best as I can.

Might I suggest you use the method: selectFeaturesWithQuery:mode:completion:()

In which you'll need to provide a AGSQueryParameters parameter where you supply a whereClause in which you set "OBJECTID = \(id)"

Please note that OBJECTID must be identical to the Object ID you have in your feature layer service schema. Also, you might need to put the value of id within brackets and quotes to better match a SQL-like where clause in case your Object ID is of type UUID. So that would look like: "OBJECTID = \'{\(id)}\'"

If you provide more information, i'd be happy to look into this issue further.

Good luck!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.