AnsweredAssumed Answered

Updating rows in RowSet using UpdateCursor

Question asked by larshalvor on Aug 29, 2014
Latest reply on Sep 1, 2014 by larshalvor



I'm new to python, so bear with me

I am fetching features from a featureclass from the rest endpoint


        query = "?where={}&outFields=*&returnGeometry=false&f=json&token={}".format(where, self.token)

        fsURL = self.protocol + self.serverName + ':' + self.serverPort + url + query


        fs = arcpy.RecordSet()


        cursor = arcpy.UpdateCursor(fs)


Then I can iterate over these rows like this:


        for row in cursor:

                print('Updating ' + key + ' to : ' + json.dumps(attributeDict[key], ensure_ascii=False))



However, I've not been able to see how I can update data on the returned rows.

Since I am fetching data through http I probably just have a local in-memory copy of these features.

Is there any "object oriented" way using arcpy, to update features through the rest endpoint?


Please advise.