亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? esrilayer.java

?? openmap java寫的開源數(shù)字地圖程序. 用applet實(shí)現(xiàn),可以像google map 那樣放大縮小地圖.
?? JAVA
字號:
// **********************************************************************// // <copyright>// //  BBN Technologies//  10 Moulton Street//  Cambridge, MA 02138//  (617) 873-8000// //  Copyright (C) BBNT Solutions LLC. All rights reserved.// // </copyright>// **********************************************************************// // $Source: /cvs/distapps/openmap/src/openmap/com/bbn/openmap/plugin/esri/EsriLayer.java,v $// $RCSfile: EsriLayer.java,v $// $Revision: 1.7.2.2 $// $Date: 2005/08/09 21:17:49 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.plugin.esri;import java.net.MalformedURLException;import java.net.URL;import java.util.ArrayList;import java.util.Properties;import com.bbn.openmap.dataAccess.shape.DbfTableModel;import com.bbn.openmap.dataAccess.shape.EsriGraphicList;import com.bbn.openmap.dataAccess.shape.EsriPointList;import com.bbn.openmap.dataAccess.shape.EsriPolygonList;import com.bbn.openmap.dataAccess.shape.EsriPolylineList;import com.bbn.openmap.dataAccess.shape.ShapeConstants;import com.bbn.openmap.layer.OMGraphicHandlerLayer;import com.bbn.openmap.omGraphics.DrawingAttributes;import com.bbn.openmap.omGraphics.OMGraphic;import com.bbn.openmap.omGraphics.OMGraphicList;import com.bbn.openmap.util.Debug;import com.bbn.openmap.util.PropUtils;/** * EsriLayer loads Esri shape file sets from web servers or local file * systems, and it enables the creation of shape file sets. *  * To create a shape file set from a remote location: <code><pre> * URL dbf = new URL(&quot;http://www.webserver.com/file.dbf&quot;);URL shp = new URL(&quot;http://www.webserver.com/file.shp&quot;); *    URL shx = new URL(&quot;http://www.webserver.com/file.shx&quot;); *    EsriLayer layer = new EsriLayer(&quot;name&quot;, dbf, shp, shx); *   * </pre></code> *  * To open a shape file set from the local file system: <code><pre> * String dbf = &quot;c:/data/file.dbf&quot;;String shp = &quot;c:/data/file.shp&quot;; *    String shx = &quot;c:/data/file.shx&quot;; *    EsriLayer layer = new EsriLayer(&quot;name&quot;, dbf, shp, shx, DrawingAttributes.DEFAULT); *   * </pre></code> * <code> * * To create a zero content shape file set from which the user can add shapes at runtime: * <code><pre> * EsriLayer layer = new EsriLayer(&quot;name&quot;, EsriLayer.TYPE_POLYLINE); * </pre></code> * <code> * * To add features to an EsriLayer: * <code><pre> * </pre></code> *   OMGraphicList shapeData = new OMGraphicList(); *   ArrayList tabularData = new ArrayList(); *   float[] part0 = new float[]{35.0f, -120.0f, -25.0f, -95.0f, 56.0f, -30.0f}; *   float[] part1 = new float[]{-15.0f, -110.0f, 13.0f, -80.0f, -25.0f, 10.0f}; *   OMPoly poly0 = new OMPoly(part0, OMGraphic.DECIMAL_DEGREES, OMGraphic.LINETYPE_RHUMB); *   OMPoly poly1 = new OMPoly(part1, OMGraphic.DECIMAL_DEGREES, OMGraphic.LINETYPE_RHUMB); *   shapeData.add(poly0);  //part 1 *   shapeData.add(poly1);  //part 2 *   shapeData.generate(_mapBean.getProjection()); *   tabularData.add(0, "a value"); *   layer.addRecord(shapeData, tabularData); *   layer.repaint(); * </pre></code> * * To configure an EsriLayer through a properties file, specify file references * in terms of resources, files or URLs. * * To reference a file on Windows 2000: * <code><pre> *   esri.class = com.bbn.openmap.plugin.esri.EsriLayer *   esri.prettyName = Esri Example *   esri.dbf = file:///c:/data/shapefile.dbf *   esri.shp = file:///c:/data/shapefile.shp *   esri.shx = file:///c:/data/shapefile.shx * </pre></code> * * To reference a file on RedHat Linux 6.2: * <code><pre> *   esri.class = com.bbn.openmap.plugin.esri.EsriLayer *   esri.prettyName = Esri Example *   esri.dbf = /home/dvanauke/resources/shapefile.dbf *   esri.shp = /home/dvanauke/resources/shapefile.shp *   esri.shx = /home/dvanauke/resources/shapefile.shx * </pre></code> * * To reference a file on a web server: * <code><pre> *   esri.class = com.bbn.openmap.plugin.esri.EsriLayer *   esri.prettyName = Esri Example *   esri.dbf = http://www.webserver.com/shapefile.dbf *   esri.shp = http://www.webserver.com/shapefile.shp *   esri.shx = http://www.webserver.com/shapefile.shx * </pre></code> * @author Doug Van Auken */public class EsriLayer extends OMGraphicHandlerLayer implements ShapeConstants {    protected DbfTableModel _model = null;    protected String dbf;    protected String shx;    protected String shp;    protected DrawingAttributes drawingAttributes = DrawingAttributes.getDefaultClone();    /**     * Creates an EsriLayer that will be configured through the     * <code>setProperties()</code> method     */    public EsriLayer() {}    /**     * Creates an empty EsriLayer, useable for adding features at     * run-time     *      * @param name The name of the layer     * @param type The type of layer     * @param columnCount The number of columns in the dbf model     */    public EsriLayer(String name, int type, int columnCount) throws Exception {        setName(name);        switch (type) {        case SHAPE_TYPE_POINT:            setList(new EsriPointList());            break;        case SHAPE_TYPE_POLYGON:            setList(new EsriPolygonList());            break;        case SHAPE_TYPE_POLYLINE:            setList(new EsriPolylineList());            break;        default:        }        _model = new DbfTableModel(columnCount);    }    /**     * Creates an EsriLayer from a set of shape files     *      * @param name The name of the layer that may be used to reference     *        the layer     * @param dbf The url referencing the dbf extension file     * @param shp The url referencing the shp extension file     * @param shx The url referencing the shx extension file     */    public EsriLayer(String name, String dbf, String shp, String shx,            DrawingAttributes da) throws MalformedURLException {        this(name,             PropUtils.getResourceOrFileOrURL(dbf),             PropUtils.getResourceOrFileOrURL(shp),             PropUtils.getResourceOrFileOrURL(shx),             da);    }    /**     * Creates an EsriLayer from a set of shape files     *      * @param name The name of the layer that may be used to reference     *        the layer     * @param dbf The url referencing the dbf extension file     * @param shp The url referencing the shp extension file     * @param shx The url referencing the shx extension file     */    public EsriLayer(String name, URL dbf, URL shp, URL shx) {        this(name, dbf, shp, shx, DrawingAttributes.getDefaultClone());    }    /**     * Creates an EsriLayer from a set of shape files     *      * @param name The name of the layer that may be used to reference     *        the layer     * @param dbf The url referencing the dbf extension file     * @param shp The url referencing the shp extension file     * @param shx The url referencing the shx extension file     * @param da DrawingAttributes to use to render the layer     *        contents.     */    public EsriLayer(String name, URL dbf, URL shp, URL shx,            DrawingAttributes da) {        setName(name);        drawingAttributes = da;        setModel(DbfTableModel.getDbfTableModel(dbf));        setList(EsriGraphicList.getEsriGraphicList(shp,                shx,                drawingAttributes,                getModel()));    }    /**     * Handles adding records to the geometry list and the     * DbfTableModel     *      * @param graphic An OMGraphic to add the graphics list     * @param record A record to add to the DbfTableModel     */    public void addRecord(OMGraphic graphic, ArrayList record) {        OMGraphicList _list = getList();                // Associate the record directly in the OMGraphic        graphic.putAttribute(SHAPE_DBF_INFO_ATTRIBUTE, record);                if (_list != null) {            _list.add(graphic);        }        if (_model != null) {            _model.addRecord(record);        }    }    /**     * Returns the EsriGraphicList for this layer     *      * @return The EsriGraphicList for this layer     */    public EsriGraphicList getEsriGraphicList() {        return (EsriGraphicList) getList();    }    /**     * Returns the associated table model for this layer     *      * @return The associated table model for this layer     */    public DbfTableModel getModel() {        return _model;    }    /**     * Returns whether this layer is of type 0 (point), 3 (polyline),     * or 5(polygon)     *      * @return An int representing the type of layer, as specified in     *         Esri's shape file format specification     */    public int getType() {        EsriGraphicList egl = getEsriGraphicList();        if (egl != null) {            return egl.getType();        }        return -1;    }    /**     * Filters the DbfTableModel given a SQL like string     *      * @param query A SQL like string to filter the DbfTableModel     */    public void query(String query) {    //to be implemented    }    /**     * Sets the DbfTableModel     *      * @param model The DbfModel to set for this layer     */    public void setModel(DbfTableModel model) {        _model = model;    }    /**     * Sets the properties for the <code>Layer</code>.     *      * @param prefix the token to prefix the property names     * @param properties the <code>Properties</code> object     */    public void setProperties(String prefix, Properties properties) {        super.setProperties(prefix, properties);        drawingAttributes.setProperties(prefix, properties);        prefix = PropUtils.getScopedPropertyPrefix(prefix);        shp = properties.getProperty(prefix + PARAM_SHP);        shx = properties.getProperty(prefix + PARAM_SHX);        dbf = properties.getProperty(prefix + PARAM_DBF);        if (shp != null) {            if ((shx == null || shx.equals(""))) {                shx = shp.substring(0, shp.lastIndexOf('.') + 1) + PARAM_SHX;            }            if ((dbf == null || dbf.equals(""))) {                dbf = shp.substring(0, shp.lastIndexOf('.') + 1) + PARAM_DBF;            }            try {                setModel(DbfTableModel.getDbfTableModel(PropUtils.getResourceOrFileOrURL(dbf)));                setList(EsriGraphicList.getEsriGraphicList(PropUtils.getResourceOrFileOrURL(shp),                        PropUtils.getResourceOrFileOrURL(shx),                        drawingAttributes,                        getModel()));            } catch (Exception exception) {                Debug.error("EsriLayer(" + getName()                        + ") exception reading Shape files:\n "                        + exception.getMessage());            }        }    }    /**     * PropertyConsumer method.     *      * @param properties the <code>Properties</code> object     * @return the <code>Properties</code> object     */    public Properties getProperties(Properties properties) {        properties = super.getProperties(properties);        String prefix = PropUtils.getScopedPropertyPrefix(this);        properties.setProperty(prefix + PARAM_DBF, PropUtils.unnull(dbf));        properties.setProperty(prefix + PARAM_SHX, PropUtils.unnull(shx));        properties.setProperty(prefix + PARAM_SHP, PropUtils.unnull(shp));        // Need to make sure they line up.        drawingAttributes.setPropertyPrefix(getPropertyPrefix());        drawingAttributes.getProperties(properties);        return properties;    }    /**     * Method to fill in a Properties object with values reflecting     * the properties able to be set on this PropertyConsumer. The key     * for each property should be the raw property name (without a     * prefix) with a value that is a String that describes what the     * property key represents, along with any other information about     * the property that would be helpful (range, default value,     * etc.).     *      * @param list a Properties object to load the PropertyConsumer     *        properties into. If getList equals null, then a new     *        Properties object should be created.     * @return Properties object containing PropertyConsumer property     *         values. If getList was not null, this should equal     *         getList. Otherwise, it should be the Properties object     *         created by the PropertyConsumer.     */    public Properties getPropertyInfo(Properties list) {        list = super.getPropertyInfo(list);        list.put(PARAM_DBF, "Location URL of the dbf file.");        list.put(PARAM_DBF + ScopedEditorProperty,                "com.bbn.openmap.util.propertyEditor.FUPropertyEditor");        list.put(PARAM_SHX, "Location URL of the shx file.");        list.put(PARAM_SHX + ScopedEditorProperty,                "com.bbn.openmap.util.propertyEditor.FUPropertyEditor");        list.put(PARAM_SHP, "Location URL of the shp file.");        list.put(PARAM_SHP + ScopedEditorProperty,                "com.bbn.openmap.util.propertyEditor.FUPropertyEditor");        drawingAttributes.getPropertyInfo(list);        list.put(initPropertiesProperty, PARAM_SHP + " " + PARAM_SHX + " "                + PARAM_DBF + " " + drawingAttributes.getInitPropertiesOrder());        return list;    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久99久精品视频免费观看| 亚洲欧美日韩国产中文在线| 欧美另类z0zxhd电影| 国产麻豆午夜三级精品| 毛片基地黄久久久久久天堂| 久久国产福利国产秒拍| 九九**精品视频免费播放| 国产一区二三区好的| 国产精品99久久久久久久女警| 韩国女主播成人在线观看| 国内精品国产成人国产三级粉色| 韩国三级中文字幕hd久久精品| 国产激情一区二区三区桃花岛亚洲| 精品一区二区综合| 老司机精品视频在线| 99这里只有精品| 色欲综合视频天天天| 337p亚洲精品色噜噜| 久久久久久久av麻豆果冻| 一区二区三区在线视频免费| 国模娜娜一区二区三区| 国产精品自拍网站| 91日韩在线专区| 精品国产精品一区二区夜夜嗨| 亚洲精品在线三区| 亚洲一区二区在线免费看| 国产一区二区福利| 欧美酷刑日本凌虐凌虐| 国产精品久久久久永久免费观看| 五月综合激情日本mⅴ| 不卡一区二区在线| 精品久久久久一区| 亚洲一区免费视频| www.亚洲精品| 国产精品美女久久久久久久久久久| 亚洲精品v日韩精品| 成人丝袜视频网| 日韩一区二区三区四区| 亚洲午夜免费视频| 波多野结衣的一区二区三区| 久久嫩草精品久久久久| 麻豆专区一区二区三区四区五区| 色婷婷亚洲精品| 亚洲香蕉伊在人在线观| 色综合天天综合网天天狠天天| 国产欧美日韩麻豆91| 国产精品中文字幕日韩精品| 欧美一级黄色片| 久久91精品国产91久久小草| 精品国产亚洲一区二区三区在线观看| 日韩影视精彩在线| 欧美成人免费网站| 国产一区二区精品在线观看| 国产人妖乱国产精品人妖| 丰满少妇在线播放bd日韩电影| 国产欧美一区二区在线| 欧美日韩精品三区| 精品一区二区三区免费毛片爱| 日韩精品中文字幕一区二区三区| 精品无码三级在线观看视频| 精品91自产拍在线观看一区| 国产精品白丝av| 五月天一区二区| 久久久三级国产网站| 成人av高清在线| 婷婷国产在线综合| 国产精品国产三级国产普通话三级| 日本久久电影网| 精品一区二区在线视频| 亚洲精品视频免费看| 日韩精品一区二| 在线观看亚洲一区| 国产成人av电影在线| 天天亚洲美女在线视频| 国产精品久久国产精麻豆99网站| 91麻豆精品国产91久久久资源速度 | 日韩电影在线免费观看| 精品国产乱码久久久久久1区2区| 欧美在线色视频| 成人av免费观看| 国产一区二区免费看| 蜜臀va亚洲va欧美va天堂 | 国产成人高清视频| 久久精品国产精品亚洲红杏| 亚洲成人精品在线观看| 国产精品短视频| 国产精品另类一区| 久久久久久97三级| 久久久综合视频| 精品国精品国产| 国产色婷婷亚洲99精品小说| 欧美v国产在线一区二区三区| 欧美剧情片在线观看| 色综合天天性综合| 91视频免费播放| 在线观看国产91| 91精品国产色综合久久| 欧美v国产在线一区二区三区| 在线电影国产精品| 26uuu亚洲综合色| 国产欧美日韩综合| 亚洲另类色综合网站| 亚洲第一在线综合网站| 日本在线不卡视频| 国产成人在线视频免费播放| 粉嫩在线一区二区三区视频| 色婷婷精品大在线视频| 欧美喷潮久久久xxxxx| 久久亚区不卡日本| 亚洲黄色免费网站| 国产一区亚洲一区| 欧美系列一区二区| 国产亚洲精品久| 日本不卡高清视频| 91丝袜美腿高跟国产极品老师 | 国产欧美视频一区二区| 麻豆成人免费电影| 成人av在线网站| 精品乱码亚洲一区二区不卡| 一区二区在线电影| www.亚洲精品| 久久色视频免费观看| 亚洲电影欧美电影有声小说| 99精品一区二区三区| 久久精品免视看| 精品一区二区免费| 欧美日韩精品一区二区三区 | 免费成人你懂的| 欧洲视频一区二区| 国产精品色婷婷久久58| 国产一区二区不卡在线| 欧美mv和日韩mv国产网站| 手机精品视频在线观看| 成人国产精品免费网站| 日韩欧美一二三| 九九久久精品视频| 精品国产自在久精品国产| 紧缚捆绑精品一区二区| 久久综合九色综合欧美98| 经典三级一区二区| 国产欧美日韩在线| 色婷婷精品大视频在线蜜桃视频| 欧美国产乱子伦 | 国产精品免费视频网站| av中文一区二区三区| 亚洲免费伊人电影| 欧美日韩国产系列| 精品一区二区在线免费观看| 国产精品久久久久久久岛一牛影视 | 激情深爱一区二区| 亚洲视频每日更新| 在线观看区一区二| 理论电影国产精品| 中文字幕亚洲电影| 欧美一区二区三区视频免费| 国产成人免费视频网站| 亚洲午夜久久久久| 中文字幕久久午夜不卡| 欧美日韩一二三区| 国产成人午夜视频| 欧美一区二区人人喊爽| 亚洲成年人网站在线观看| 一本色道久久加勒比精品| 1区2区3区国产精品| 精品视频999| 成人激情黄色小说| 韩国欧美一区二区| 蜜桃视频第一区免费观看| 亚洲精品乱码久久久久久黑人| 欧美一区二区视频观看视频| 色天天综合色天天久久| 国产夫妻精品视频| 久久精品久久久精品美女| 天天综合日日夜夜精品| 一区二区在线观看视频在线观看| 久久久99免费| 国产性天天综合网| 精品免费视频一区二区| 这里只有精品免费| 欧美撒尿777hd撒尿| 欧美精品v国产精品v日韩精品| 91蜜桃视频在线| 欧美色爱综合网| 91精品欧美福利在线观看| 欧美久久一区二区| 日韩欧美视频一区| 久久婷婷综合激情| 国产精品毛片高清在线完整版| 中文字幕av一区 二区| 亚洲欧美视频在线观看视频| 亚洲黄色在线视频| 精品一区二区日韩| 成人sese在线| 日本道免费精品一区二区三区| 国产91丝袜在线观看| 色欧美日韩亚洲| 精品第一国产综合精品aⅴ| 中文字幕乱码日本亚洲一区二区 | 久久精品视频一区二区| 欧美国产综合一区二区|