Hoppa till huvudinnehållet

Apply Spatial or Attribute Filter to data via User permissions

Kommentarer

4 kommentarer

  • Permanently deleted user
    Hi Dylan,

     

    There is a way, yes.  It's documented under the heading "Filter a Layer's Features":

     

    https://docs.geocortex.com/essentials/latest/admin-help/Default.htm#ge/admin/filter-a-layers-features.htm

     

    and

     

    https://docs.geocortex.com/essentials/workflow/latest/help/Default.htm#wf/help/create-a-workflow.htm#Create_a_Layer_Filter_Workflow

     

    I am not sure if you can filter out specific attributes/fields completely, but you can certainly filter by attribute value.

     

    Regards,

     

    -Malcolm
    0
  • Permanently deleted user
    Hey Malcolm, 

     

     

    Is it also possible to filter de layer based on geometry (so geometry instead of where clause) in a layer filter workflow? 
    0
  • Nico Burgerhart
    You can do a query task with a geomety as in put to get the object ids of the geometries intersecting with the geometry. You can create a where clause based on this object ids and use this to set a definition expression on the layer.

     

    If there are many object ids, the query URL could become too long. And I'm not sure of the performance of this suggestion.
    0
  • Permanently deleted user
    Thanks for the suggestion Nico. I am not sure if I can apply this solution. First of all because of performance considerations, secondly because the objects in my layer are moving (ships). I am not sure when does layer filter workflow applies its definition query. If it is at the start up, then that definition is not valid for me since the ships are coming in and out of the extent. If it applies the definition every time the service is loaded (refreshed), it might be a solution.
    0

Du måste logga in om du vill lämna en kommentar.