}
private void testHasSpatialField(String dsName) throws Exception {
SpatialDataSource sds = (SpatialDataSource) ds.getDataSource(dsName);
sds.start();
SpatialDriverMetadata sdm = (SpatialDriverMetadata) sds.getDriverMetadata();
boolean has = false;
for (int i = 0; i < sdm.getFieldCount(); i++) {
if (sdm.getFieldType(i).equals(PTTypes.STR_GEOMETRY)) {
has = true;
break;
}
}