agrc / palletjack

A library for updating AGOL data from various external sources
https://agrc.github.io/palletjack/palletjack/
MIT License
12 stars 0 forks source link

feat: Use arcgis instead of arcpy #5

Closed jacobdadams closed 2 years ago

jacobdadams commented 2 years ago

This code uses the arcgis module for doing in-line updates of existing attribute data instead of using arcpy's cursors. This should enable it to be used in any environment, not just those that have ArcGIS Pro installed.

This relies on the FeatureLayer.edit_features() method to perform the edits. The FeatureLayer.append() method seems like it would be faster, but I haven't been able to figure out a way to pass info from a dataframe to .append(). Performance does not seem to be an issue with my testing dataset with ~200 features.

Due to changes in the function names, this should probably bump the major version to 2.0.0.