Follow

Create an analytic application

The purpose of this exercise is to create an application that allows you to select properties (parcels) using points and a radius, a freehand polygon, or a 15m buffer layer around the center-line of the roads in the city of Guelph ("Guelph Streets").

Giffilter.gif

1) Edit the "Guelph Property" Form that will be used to configure the data consultation of the properties from the city of Guelph. Several useless fields can be removed from the Form. Make sure to add the " browsable ": true ' option at the end of the Form:

{
   "name":"Guelph Properties",
   "attributes": [
      {
      "label": "gpid_",
      "name": "gpid",
      "type": "text"
      },
      {
      "label": "Parcel type",
      "name": "parceltype",
      "type": "text"
      },
      {
      "label": "Municipality",
      "name": "municipali",
      "type": "text"
      }
      ],
      "editable": false,
      "queryable": true,
      "browsable": true
}

2) Create a map with "Guelph Property" and make sure the Form associated with your layer is "Guelph Property". Add the "Guelph Streets" layer.

3) Create a Mapping Application using your "Guelph Property" map. Make sure to enable the "Data Source Browser" option. Save and run your application. Explore all available features.

4) We want to filter the data to show only the parcels of residences, public land and hide the street parcels. Since the Data Source contains a field that identifies the parcel type, it is easy to use this information to filter the data. To do this, we will add a "evouala filter" in the Form of "Guelph Property". Here is the configuration to add at the end of the previous Form. Save and refresh the application:

"evouala_filters": [
    {
    "choices": [
        {
            "label": "Properties",
            "value": "SURFACE PARCEL"
        },
        {
            "label": "Roads",
            "value": "ROAD PARCEL"
        }
     ],
    "default_value": "SURFACE PARCEL",
    "mode": "select",
    "priority": 21,
    "property": "parceltype",
    "title": "Parcel Type"
    }
]

5) We would now like to allow users to select parcels that are within a selected "Wards" polygon. To do this, add a "Spatial Filter" in the configuration of the "Guelph Property" Form:

"spatial_filters": [
       list_identifiant_resource
]

Note: The registered number is the Resource ID of the "Wards" Data Source. View the properties of this Data Source to identify it.

6) Test your application! Check in the documentation, there are different types of spatial filters (crosses, cover, etc).

7) We would now like to select the parcels that are on a road segment identified by the user. To do this, create a 15m Dynamic Buffer Layer, based on the center-line layer (Guelph Streets):

  • Click on the '+' button, then select "Process";
  • Click on the 'Browse...' button and select the "Guelph Street" Data Source;
  • Add the "Buffer zone" operator and configure it to create a new polygon type geometry of 15m around the center-line of the roads;
  • Run the process (button at the bottom of the page) and observe the results;

8) Save the process and carefully examine the options. For the purpose of the exercise and since the Data Source is not dynamic, it is useful here to enable the "Materialize process" option.
This will create a new static physical layer instead of a dynamic query at each lookup. The consultation will be much faster.

9) Identify the Data Source id of your process and add it to your Spatial Filter list contained in the "Guelph Property" Form. Save your Form.

10) Refresh your application and validate. Et vouala!

Note: Filter types are numerous and several combinations are possible. Explore the Forms documentation to learn more.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk