Knowledge Types- Area

There are two types of local area knowledge queries available:

  1. On a continuous dataset: e.g. a postcode map where you are certain to always get a response.
  2. On discrete dataset: e.g. determining if the current location is either ‘in’ or ‘out’ of a defined area feature.

Adding a property

In your Local Knowledge SWD, right click on the overlay you wish to add the property to and select Properties:

Then select Properties again in the Overlays dialog:

And finally, select Add… to add a new property:

Add this attribute to the layers you want to query for area.

For more detail within the results, choose the Map Tip inside Schema. This displays the schema attributes you have chosen. In this example, only the attributes DESCRIPTIO, HECTARES and NAME will be displayed.

Discrete dataset worked example: Am I in a green belt zone?

If you want to know whether the current location is either ‘in’ or ‘out’ of a defined area, you can still use the area search, but need to set up two templates; one which is displayed if you are ‘in’ the feature and another which is displayed if you are ‘out’ of the feature.

The map of Green Belt land in the UK only covers certain areas.

To check if you are in Green Belt zone, add the property WML::Knowledge_Type$ to the overlay containing the greenbelt data. This defines the layer to be used for an area search: These HTML templates can be used to display if the search point is in or out of a green belt:

  1. <div>You are currently <b>in</b> a Green Belt zone.</div> </br>
  2. <div>You are currently <b>not in</b> a Green Belt zone.</div> </br>