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

Upsert: add field renaming #18

Closed jacobdadams closed 1 year ago

jacobdadams commented 2 years ago

~For example, an enterprise gdb in postgres stores length as st_length(shape) while AGOL stores it as Shape__Length (note double underscore).~

Edit: geometry was a red herring. Still, adding field mapper to allow field renaming if needed.

steveoh commented 2 years ago

These are auto generated and should not be updated explicitly. I'm not sure they will let you update them explicitly. I think they can safely be ignored completely and the feature service will manage them.

jacobdadams commented 2 years ago

hmm, I'll have to test. It makes sense that they're auto-generated, but previous file gdb to AGOL updates have worked the shape/area fields included... I wonder if it's just ignoring them. Time to test.

jacobdadams commented 2 years ago

Belay that... I don't think I've tried file gdb to agol, it's always been tabular x/y data. Definitely time to test.

steveoh commented 1 year ago

What was the result of those tests?

jacobdadams commented 1 year ago

I've only ever really worked with palletjack on point data. There are a lot more considerations for polygon data, and I also need to add some sanity checks for projections. The field renaming may still be useful, so I pushed that through on its own.