本文整理汇总了Java中org.opengis.feature.IllegalAttributeException类的典型用法代码示例。如果您正苦于以下问题:Java IllegalAttributeException类的具体用法?Java IllegalAttributeException怎么用?Java IllegalAttributeException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IllegalAttributeException类属于org.opengis.feature包,在下文中一共展示了IllegalAttributeException类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createSampleFeature
import org.opengis.feature.IllegalAttributeException; //导入依赖的package包/类
/**
* Creates a sample Feature instance in the hope that it can be used in the rendering of the
* legend graphic.
*
* @param schema the schema for which to create a sample Feature instance
*
*
*
* @throws ServiceException
*/
private Feature createSampleFeature(FeatureType schema) throws ServiceException {
Feature sampleFeature;
try {
if (schema instanceof SimpleFeatureType) {
if (hasMixedGeometry((SimpleFeatureType) schema)) {
// we can't create a sample for a generic Geometry type
sampleFeature = null;
} else {
sampleFeature = SimpleFeatureBuilder.template((SimpleFeatureType) schema, null);
}
} else {
sampleFeature = DataUtilities.templateFeature(schema);
}
} catch (IllegalAttributeException e) {
throw new ServiceException(e);
}
return sampleFeature;
}
示例2: validate
import org.opengis.feature.IllegalAttributeException; //导入依赖的package包/类
public void validate()
throws IllegalAttributeException {
simpleFeature.validate();
}
示例3: validate
import org.opengis.feature.IllegalAttributeException; //导入依赖的package包/类
/** Not Implemented */
public void validate() throws IllegalAttributeException {}