⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 feature.java

📁 读取shp文件,不依赖于其他架包 FeatureClass 主类
💻 JAVA
字号:
/*
 * @(#)Feature.java  下午01:28:35 2006-7-6 2006
 *
 * Copyright (C) 2006 Beijing Spaceware High Tech. Co., Ltd.  
 * All rights reserved.
 * 
 * Copyright (C) 2006 CyberGIS Studio, Peking University.  
 * All rights reserved.
 */
package cn.com.sdgis.gis.geobase;

import java.util.List;

import cn.com.sdgis.gis.geometry.Geometry;


/**
 * TODO describe this class please.
 *
 * @author Zhang Xuehu
 * @version
 * @see
 *
 * Change log:
 */
public class Feature {

    private Geometry shape;
    
    private Fields fields;

    
    /**
     * @return Returns the fields.
     */
    public Fields getFields() {
        return fields;
    }

    /**
     * @param fields The fields to set.
     */
    public void setFields(Fields fields) {
        this.fields = fields;
    }

    /**
     * @return Returns the shape.
     */
    public Geometry getShape() {
        return shape;
    }

    /**
     * @param shape The shape to set.
     */
    public void setShape(Geometry shape) {
        this.shape = shape;
    }
    
    /**
     * 
     * @param name 属性名
     * @return 属性值
     */
    public Object getValue(String name){

        return fields.getField(name).getValue();
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -