Skip to main content

Copy contents of drawings layer

Comments

9 comments

  • Permanently deleted user
    Hi,

     

    Have you found any solution to this.

     

    Thanks :)

     

    Srikanth
    0
  • Amanda Frech
    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,

     

    Amanda
    0
  • Nico Burgerhart
    You can filter you results to a specific geometry type (with parameter Geometry Type) and do multiple requests for different geometry types.
    0
  • Permanently deleted user
    Good catch Nico, thanks!  You could definitely use that method and get a featureset for each geometry type.  It slipped past me.
    0
  • Darryl Klassen
    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
  • Nico Burgerhart
    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.htm
    0
  • Darryl Klassen
    That is great, thanks Nico.  That worked great for me.

     

     
    0
  • Darryl Klassen
    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
  • Nico Burgerhart
    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.