layer.setSpatialColumnName("SHAPE");
/*
* Register the column to be used as feature id and managed by sde
*/
SeRegistration reg = new SeRegistration(connection, table.getName());
LOGGER.fine("setting rowIdColumnName to ROW_ID in table " + reg.getTableName());
reg.setRowIdColumnName("ROW_ID");
reg.setRowIdColumnType(SeRegistration.SE_REGISTRATION_ROW_ID_COLUMN_TYPE_SDE);
reg.alter();
layer.setShapeTypes(SeLayer.SE_NIL_TYPE_MASK | SeLayer.SE_POINT_TYPE_MASK);
layer.setGridSizes(1100.0, 0.0, 0.0);
layer.setDescription("Layer Example");
SeExtent ext = new SeExtent(0.0, 0.0, 10000.0, 10000.0);
layer.setExtent(ext);
/*
* Define the layer's Coordinate Reference
*/
SeCoordinateReference coordref = getGenericCoordRef();
layer.setCoordRef(coordref);
/*
* Spatially enable the new table...
*/
layer.setCreationKeyword(getConfigKeyword());
layer.create(3, 4);
// register the table as versioned
SeRegistration registration = new SeRegistration(connection, tableName);
registration.setMultiVersion(true);
registration.alter();
return table;
}
};