Basic Spatial and Scalar Check

Next, we might decide that it's not good enough to know that our Fire Station point is located in any building... but that it must specifically be a Fire Station building.

We can write some rule logic that checks the "type" of building.

Illustration representing what a point, spatial check, and a polygon with the Fire Station type look like in the data.

Adding this to our previous rule looks like this:

The Rule that checks the basic spatial and scalar check, locating Fire Station objects and checking if they are in buildings marked as Fire Stations.

Notice how we write rules in a "positive" way - defining how the data should behave in a perfect world.

If we instead wrote rules in a "negative" way - defining exactly how our data shouldn't behave, we would be at risk of missing failures we didn't even know could happen!

For example, if we only said Fire Stations shouldn't be within Schools, we wouldn't identify any Fire Stations within Hospitals.

However, when we say Fire Stations should be in Fire Stations, we will identify Fire Stations in Schools, Hospitals, Residential buildings or anything else that isn't a Fire Station!

Our rules based approach means we can easily tweak our existing rule as we develop our definition of "good quality".

A few small amendments to our rule and we can run it again to check the differences.

The Rule showing 50% conformance after running in a Session.

We now have more non-conformances, as our updated rule returns false for 3 of our Fire Station points.

The map showing 3 failed red nodes and 3 passing green nodes.

In addition to the un-contained Fire Station point we previously found; we can see that there are two points that are contained within residential buildings.

A Fire Station point in a Residential Building rather than the Fire Station next to it.
A second Fire Station point in a Residential Building rather than the Fire Station next to it.

Look at some rules

Basic Spatial Check map image
Basic Spatial Check

Extended Check 50m map image
Extended Spatial and Scalar Check 50m
Extended Check 100m map image
Extended Spatial and Scalar Check 100m
Extended Check 50m map image
Extended Spatial and Scalar Check 150m