Database Scripts

The results of a FindIT search are written to a database. To build the required tables in the appropriate database, use the scripts below.

Database tables are created and populated as below:

Table name: SEARCH

Data Type

Description

SEARCHTIME

Datetime (SQL) or timestamp (PostGIS)

Date and Time of the search

POLYGONID

Number (auto increment)

Unique ID

GEOMETRY

Geometry

Spatial object of the polygon

CONSTRAINTS

Boolean

1 if constraints are found; 0 if no constraints are found

 

Table name: CONSTRAINTS

Data Type

Description

POLYGONID

Number

Unique ID from the search polygon

CONSTRAINTLAYER

String

Name of the constraint layer

CONSTRAINTIDCOLUMN

String

The identifying attribute from the feature

The tables are linked by the POLYGONID. In the CONSTRAINTS table all of the constraints against each POLYGONID are listed in individual rows. This is to cater for an unknown number of constraints being returned for each search.

After making the changes restart the IIS application pool.