Open trillevine opened 9 years ago
Hey Trill, thanks for some input and sending over the functionality you are building in. Great you are modifying and it's working out for your needs.
In regards to your first point, I did add some functionality to update the query based on whether the url was for a layer or for the feature service. So if you pass in the feature service url, and not a layer in it, it will push out all layers.
I.e. below is a snippet from the "pull_replica" function that pulls in all the layers to replicate into one gdb if the url ends in "FeatureServer". If it ends in "FeatureServer/0" then will just pull layer 0.
query['layers'] = [layer['id'] for layer in layers]
self.replicate(query)
Hi Brian,
I cleaned up and modified this code a bit. A few things to note:
Here you go: