Copy contents of drawings layer
I am looking, if it is posible to copy contents of Drawings(Graphics Layer) to NewDrawing(Graphics Layer) and visa versa in HTML5 Viewer.
Graphics Layers
Layer1 :- Drawing
Layer2:- NewDrawings
Is is posible to impliment using custom javascript in HTML5 or using workflow ?
I tried using GetGraphicsLayerContent in workflow, but it does not work with mixed types(point, line , poly, text).
0
-
Hi,
Have you found any solution to this.
Thanks :)
Srikanth0 -
Hi Srikanth,
This probably isn't possible for the reason that Popat gave. The GetGraphicsLayerContent activity is currently the only way to get obtain the contents of a graphics layer in a workflow. Since the activity returns a featureset, it will fail if the graphics layer contains mixed geometry types. To have it work in a way that accepts multiple geometry types, it would have to return something like a collection of featuresets instead. If you'd like to see the activity changed in the future to accomodate this, I would recommend posting in the Ideas section (https://support.geocortex.com/GSCIdeas?c=09a6000000008RsAAI&filter=1&categ=all&sub-nav=ideas&main-nav=essentials&page=1) so that other users can vote for the idea as well.
Thanks,
Amanda0 -
You can filter you results to a specific geometry type (with parameter Geometry Type) and do multiple requests for different geometry types. 0 -
Good catch Nico, thanks! You could definitely use that method and get a featureset for each geometry type. It slipped past me. 0 -
I am trying to do the same thing. I have my GeomtryType filter working, but now I want to copy each of these feature sets to a feature service. Is there an activity for this withing Workflow Designer? 0 -
Yes, AddFeatures, and for the Features parameter you can use (one of) you featuresets. I think you should use something like yourfeaturesetvariable.Features to get a list of graphics.
https://docs.geocortex.com/essentials/workflow/4.9/help/Default.htm#wf/help/wf_A_AddFeatures.htm0 -
That is great, thanks Nico. That worked great for me. 0 -
Another question, I have exported my markup Text out as a point - but the attribute of the textstring doesn't come accross - does anyone know of a way to get this to be part of the data export? 0 -
As far as I know this is not possible
From the documentation(...) exports do not include text or drawing styles from the markup layer.0
Please sign in to leave a comment.
Comments
9 comments