I want to take a published Web Map ID (GUID datatype) and be able to copy to a Feature Class certain feature layers/feature sets in the underlying data, run geo-processing on those copies, then update/add data back to those underlying featureclasses in the Web Map.
I have gotten as far as
--Identifying the Web Map using the supplied GUID
--Identifying the various feature services/web feature layers that make up the Web Map (3 are used, each containing different feature classes)
--then drilling down into those feature services to find and set to a variable the desired feature set (the point or a line feature I need to process). 'Feature Set' is the only object type I have been able to create from a Feature Service.
I now need to copy that feature set to a feature class (into either a desktop gdb, an enterprise database, or to memory) so that I can run my geo-processing arcpy script.
The script is working, as long as I have hard coded database connections, and runs various geo-processing functions (Near_analysis, CopyFeatures, Snap_edit, SplitLineAtPoint, AddGeometryAttributes, DeleteIdentical, along with several SearchCursors and UpdateCursors) with the result of an updated point and line feature class that I need to then update/add back to the feature classes used in the original Web Map.
The issue is I do not know where the original data may be at, the customer will be generating the Web Maps and so I cannot hardcode the database connections. I only have a GUID to the Web Map the data needs to come from and go back to. That is my only connection to the desired data.
Solved! Go to Solution.