public boolean isGeometry ( GeometryIndex index ) { if ( index . hasChild ( ) ) { return isGeometry ( index . getChild ( ) ) ; } return index . getType ( ) == GeometryIndexType . TYPE_GEOMETRY ; }
Does the given index point to a sub - geometry or not? We look at the deepest level to check this .