Simple Reader Example
The example below configures a SpatialWare reader to extract features from the ODBC data source testdset. Only features located in the table named roads, that fall within the specified envelope, have an attribute NUMLANES with a value of 2, and an attribute SURFACE with a value of GRAVEL, are read from SpatialWare.
SPATIALWARE_DATASET testdset SPATIALWARE_SERVER_VERSION 4.8 SPATIALWARE_SERVER_TYPE sqlserver SPATIALWARE_USERID kevin SPATIALWARE_PASSWORD secret SPATIALWARE_DEF ROADS \ spatialware_def_where_clause NUMLANES = 2 AND SURFACE = GRAVEL \ AND ST_Contains(HG_Box(10,20,60,70),sw_geometry)