MapBasic Program API
spatialSQL provides an interface for
MapBasic programmers to load data and run queries or updates
. The interface is data driven in that the interface parameters are
completely defined in a
Batch SpatialSQL table.
To add a spatialSQL interface to your program, you
need to add define statements
to your include file.
The statement to initiate a particular button pad function is:
Run Menu Command Id spSQL_button_id
For example, to display the table1 pick
dialogue:
Run Menu Command Id spSQL_TABLE1
You need to ensure that a particular pad is on display before running one of its functions:
Run Menu Command Id spSQL_GEOOP
Run Menu Command Id spSQLOP_FREE_ENDS
You also need to be aware that certain pad functions drop the pad on selection of a button. Use the interface to establish the correct order.
If you wish to toally automate the interface with no user interaction with the spatialSQL interface, you will need to use the batch dispatch table as described above. To achieve this:
The button identifiers that are used in spatialSQL may conflict with other MapBasic applications. If there is a conflict, you may need to temporarily stop the other application. spatialSQL ids are in the ranges 3000-3200 and 4000-4100