当前位置: 首页>>代码示例>>Java>>正文


Java IllegalAttributeException类代码示例

本文整理汇总了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;
}
 
开发者ID:robward-scisys,项目名称:sldeditor,代码行数:29,代码来源:SLDEditorBufferedImageLegendGraphicBuilder.java

示例2: validate

import org.opengis.feature.IllegalAttributeException; //导入依赖的package包/类
public void validate()
		throws IllegalAttributeException {
	simpleFeature.validate();
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:5,代码来源:SimpleFeatureWrapper.java

示例3: validate

import org.opengis.feature.IllegalAttributeException; //导入依赖的package包/类
/** Not Implemented */
public void validate() throws IllegalAttributeException {}
 
开发者ID:opengeospatial,项目名称:Java-OpenMobility,代码行数:3,代码来源:SimpleFeatureImpl.java


注:本文中的org.opengis.feature.IllegalAttributeException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。