static public boolean featureTypeOk ( FeatureType want , FeatureType facType ) { if ( want == null ) return true ; if ( want == facType ) return true ; if ( want == FeatureType . ANY_POINT ) { return facType . isPointFeatureType ( ) ; } if ( facType == FeatureType . ANY_POINT ) { return want . isPointFeatureType ( ) ; } if ( want == FeatureType . COVERAGE ) { return facType . isCoverageFeatureType ( ) ; } if ( want == FeatureType . GRID ) { // for backwards compatibility return facType . isCoverageFeatureType ( ) ; } if ( want == FeatureType . SIMPLE_GEOMETRY ) { return facType . isCoverageFeatureType ( ) ; } if ( want == FeatureType . UGRID ) { return facType . isUnstructuredGridFeatureType ( ) ; } return false ; }
Determine if factory type matches wanted feature type .