Aller au contenu principal

Add shape of a selected feature to the Query layer input

Non planifiée

Commentaires

11 commentaires

  • Ken Lyon

    Aad van der Kramer You can probably do this already, although it might take some work on your part to determine the area to search within. The Query Layer activity has a Geometry input which filters the results to only those within that area. The catch is that you will need to determine the geometry in advance then pass it in to this activity.

    0
  • Aad van der Kramer

    Yes, the filter can use a Geometry input, but you have to draw that geometry/shape yourself. That is not efficient. So if someone knows the trick to copy the shape of a selected shape in to this filter i would be happy :-)

    0
  • Ken Lyon

    Aad van der Kramer You should not have to draw the geometry accepted by Query Layer. I believe there are a number of ways to get the geometry you need in advance. For your initial example, there should be a way to get the outline of the municipality that you are interested in from the layer. You could then pass this in to Query Layer.

    Alternatively, you could get the geometries of currently selected features and combine them with an activity like Union Geometries to combine them into a single geometry before passing the result in to Query Layer.

    0
  • Aad van der Kramer

    Hi Ken, can this be done by a normal user or must it been configured somewhere in the Vertigis Studio Web designer?

    0
  • Ken Lyon

    Aad van der Kramer You should be able to do all of this in a workflow you create in the VertiGIS Studio Workflow designer.

    If you want to use the highlighted areas of the map, you can use the Run Operation activity to retrieve the current highlights from the host VertiGIS Studio Web application. I think the highlights.get operation should give you what you need. It returns a FeatureSet.

    Once you have the FeatureSet, you can use the Get Feature Geometry activity to get a single geometry from the FeatureSet. You can then pass that geometry in to the geometry input of the Query Layer activity.

    0
  • Aad van der Kramer

    Ken, thanks for your explination. I sounds easy …. :-)

    I would rather have this functionality added in the designer in stead of making a workflow (i have not enough  exprerience with the Workflow designer).

    0
  • Ken Lyon

    Aad van der Kramer You can always post to the Ideas - VertiGIS Studio Web topic if you'd like an enhancement there, but as it stands what I described is how you would do it in workflow.

    0
  • Aad van der Kramer

    Hi Ken, it posted it as an idea already 7 months ago. I doubt if that page is checked :-(

    "Select by location" – VertiGIS Support

    0
  • Ken Lyon

    Aad van der Kramer The idea that you linked to is marked as Completed and it says it was included in Web 5.27.

    Scott Anderson Are there any details you could provide here on how Aad could achieve this?

    0
  • Scott Anderson

    Hi Aad van der Kramer, web was updated to support map area = ‘visible area’ to support directly querying the visible area, it was also updated to support adding custom tools within the query builder's toolbar.

    Using this functionality you should be able to add your own tool/ workflow that would allow you to identify a municipality and add its geometry to the current query from within the query builder.

    0
  • Aad van der Kramer

    Scott, thanks for the info. I know the options to draw a geometry and combine that geometry with a query. The HTML version worked with graphics which you could draw and combine with your query. The big advantage of the HTML version was that you could copy the geometry of a selected face to the sketch layer, and that geometry would then be combined with the query in the same way as a manually drawn face. I still find it a pitty that everyone has to build his own tools/workflows to make this function work like it did in the HTML version. Do you have an example of such a workflow?

    0

Vous devez vous connecter pour laisser un commentaire.