...
Filling a Spatio-Temporal Index
...
This data can now be used to fill a spatio-temporal index for moving objects. To do this, create another Odysseus Script file and run the following query.
Code Block |
---|
#PARSER PQL
/// The index structure
#DEFINE dataStructureName 'sanFranciscoStore'
#DEFINE dataStructureType 'mo_geohash'
#RUNQUERY
/// Store the data in an index structure
movingObjectIndex = MOVINGOBJECTSTORE({
distancepermo = 100.0,
geometryattribute = 'SpatialPoint',
datastructurename = ${dataStructureName},
idattribute = 'sourceMmsi',
datastructuretype = ${dataStructureType}
},
System.SanFranciscoAIS
) |
Running a Range-Query on the Index
...