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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? shapespecialist.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
// **********************************************************************// // <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/corba/com/bbn/openmap/layer/specialist/shape/ShapeSpecialist.java,v $// $RCSfile: ShapeSpecialist.java,v $// $Revision: 1.2.2.2 $// $Date: 2005/08/09 21:18:00 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.layer.specialist.shape;import java.awt.Color;import java.io.File;import java.util.Properties;import java.util.Vector;import com.bbn.openmap.Environment;import com.bbn.openmap.MoreMath;import com.bbn.openmap.CSpecialist.MouseEvent;import com.bbn.openmap.CSpecialist.UGraphic;import com.bbn.openmap.CSpecialist.WidgetChange;import com.bbn.openmap.layer.shape.ESRIRecord;import com.bbn.openmap.layer.shape.SpatialIndex;import com.bbn.openmap.layer.specialist.SColor;import com.bbn.openmap.layer.specialist.SGraphic;import com.bbn.openmap.layer.specialist.Specialist;import com.bbn.openmap.util.Debug;import com.bbn.openmap.util.PropUtils;/** * Implements the Specialist interface so that we can serve graphics * to OpenMap via CORBA. This specialist handles shape files, with the * coordinates in the shape files being in decimal degrees, not * pre-projected x-y coordinates. The specialist looks for a property * file to know where where the shape file and spatial index file is, * and how to color the shapes. */public class ShapeSpecialist extends Specialist {    /** The name of the property that holds the name of the shape file. */    public final static String shapeFileProperty = "shapeFile";    /**     * The name of the property that holds the name of the spatial     * index file.     */    public final static String spatialIndexProperty = "spatialIndex";    /**     * The name of the property that holds the line color of the     * graphics.     */    public final static String lineColorProperty = "lineColor";    /**     * The name of the property that holds the fill color of the     * graphics.     */    public final static String fillColorProperty = "fillColor";    /** The spatial index to use to pick the graphics to return. */    protected SpecialistSpatialIndex spatialIndex;    /** The read-in properties. */    protected Properties properties = null;    /** The color to outline the shapes. */    protected SColor lineColor = null;    /** The color to fill the shapes. */    protected SColor fillColor = null;//    final private static SColor nullColor = new SColor((short) 0, (short) 0, (short) 0);//    final private static EStipple nullStipple = new EStipple(null, (short) 0, (short) 0, new byte[0]);//    final private static EComp nullComp = new EComp(null, "");//    final private static XYPoint nullP1 = new XYPoint((short) 0, (short) 0);//    final private static XYPoint[] nullPA = new XYPoint[0];//    final private static LLPoint nullLL1 = new LLPoint(0.0f, 0.0f);    /**     * default constructor is called when we're loading the class     * directly into OpenMap. Not used.     */    public ShapeSpecialist() {        super("ShapeSpecialist", (short) 2, false);    }    /**     * The real constructor to use.     *      * @param shapeFile the shapefile.     * @param spatialIndexFile the created index file (.ssx) for this     *        shp file.     */    public ShapeSpecialist(String shapeFile, String spatialIndexFile) {        super("ShapeSpecialist", (short) 2, false);        init(shapeFile, spatialIndexFile);    }    /**     * Loads the spatial index from the two files.     *      * @param shapeFile the shapefile.     * @param spatialIndexFile the created index file (.ssx) for this     *        shp file.     */    public void init(String shapeFile, String spatialIndexFile) {        spatialIndex = locateAndSetShapeData(shapeFile, spatialIndexFile);    }    /**     * Gets the layer graphics.     *      * @param ll1 the upper left LLPoint.     * @param ll2 the lower right LLPoint.     * @return OMGraphicList     */    protected Vector computeGraphics(com.bbn.openmap.CSpecialist.LLPoint ll1,                                     com.bbn.openmap.CSpecialist.LLPoint ll2) {        if (spatialIndex == null)            return new Vector();        Vector list = null;        // check for dateline anomaly on the screen. we check for        // ll1.lon >=        // ll2.lon, but we need to be careful of the check for        // equality because        // of floating point arguments...        if ((ll1.lon > ll2.lon)                || MoreMath.approximately_equal(ll1.lon, ll2.lon, .001f)) {            if (Debug.debugging("shape")) {                Debug.output("Dateline is on screen");            }            double ymin = (double) Math.min(ll1.lat, ll2.lat);            double ymax = (double) Math.max(ll1.lat, ll2.lat);            try {                ESRIRecord records1[] = spatialIndex.locateRecords(ll1.lon,                        ymin,                        180.0d,                        ymax);                ESRIRecord records2[] = spatialIndex.locateRecords(-180.0d,                        ymin,                        ll2.lon,                        ymax);                int nRecords1 = records1.length;                int nRecords2 = records2.length;                list = new Vector(nRecords1 + nRecords2);                for (int i = 0; i < nRecords1; i++) {                    ((ESRISpecialistRecord) records1[i]).writeGraphics(list,                            lineColor,                            fillColor);                }                for (int i = 0; i < nRecords2; i++) {                    ((ESRISpecialistRecord) records2[i]).writeGraphics(list,                            lineColor,                            fillColor);                }            } catch (java.io.IOException ex) {                ex.printStackTrace();            } catch (com.bbn.openmap.io.FormatException fe) {                fe.printStackTrace();            }        } else {            double xmin = (double) Math.min(ll1.lon, ll2.lon);            double xmax = (double) Math.max(ll1.lon, ll2.lon);            double ymin = (double) Math.min(ll1.lat, ll2.lat);            double ymax = (double) Math.max(ll1.lat, ll2.lat);            try {                ESRIRecord records[] = spatialIndex.locateRecords(xmin,                        ymin,                        xmax,                        ymax);                int nRecords = records.length;                list = new Vector(nRecords);                for (int i = 0; i < nRecords; i++) {                    ((ESRISpecialistRecord) records[i]).writeGraphics(list,                            lineColor,                            fillColor);                }            } catch (java.io.IOException ex) {                ex.printStackTrace();            } catch (com.bbn.openmap.io.FormatException fe) {                fe.printStackTrace();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产很黄免费观看久久| 欧美在线啊v一区| 欧美国产一区在线| 日韩欧美国产成人一区二区| 亚洲免费av在线| 99国内精品久久| 国产精品国产a| 91日韩精品一区| 一区二区三区日韩在线观看| 99久久婷婷国产综合精品电影| 欧美国产激情一区二区三区蜜月| 国产精品资源在线| 中文字幕亚洲区| 欧美日韩aaa| 久久精品久久久精品美女| 亚洲精品一区二区三区在线观看| 久久99精品久久久久婷婷| 精品国产精品网麻豆系列| 韩国理伦片一区二区三区在线播放| 亚洲精品在线观| 成人av网站免费| 亚洲一卡二卡三卡四卡无卡久久| 在线精品视频小说1| 日本伊人午夜精品| 国产精品天美传媒| 欧美日韩日日骚| 国产一二三精品| 亚洲精品日韩一| 久久精品夜夜夜夜久久| 色婷婷综合久久久中文字幕| 蜜臀99久久精品久久久久久软件| 中文字幕国产一区| 91超碰这里只有精品国产| 国产成人自拍在线| 一区二区三区四区不卡视频 | 色综合久久88色综合天天免费| 亚洲大片一区二区三区| 欧美国产一区视频在线观看| 91.xcao| 91传媒视频在线播放| 国产麻豆精品一区二区| 日本aⅴ亚洲精品中文乱码| 亚洲私人黄色宅男| 国产精品天美传媒| 中文欧美字幕免费| 久久女同精品一区二区| 国产精品乱人伦| 精品国产乱码久久| 欧美一级黄色片| 欧美成人a视频| av午夜精品一区二区三区| 精品一区二区三区免费毛片爱| 亚洲午夜激情av| 一个色综合av| 亚洲日本成人在线观看| 中文字幕视频一区二区三区久| 久久久综合激的五月天| 久久精品亚洲乱码伦伦中文| 欧美激情一区不卡| 亚洲女人****多毛耸耸8| ●精品国产综合乱码久久久久| 欧美国产日本韩| 亚洲色图欧美激情| 亚洲成人午夜电影| 免费在线观看精品| 亚洲国产成人va在线观看天堂| 亚洲一二三专区| 日韩精品久久久久久| 免费高清视频精品| 人妖欧美一区二区| 国产精一品亚洲二区在线视频| 国产乱人伦偷精品视频不卡 | 国产精品一区二区无线| 国产黑丝在线一区二区三区| 日本在线不卡一区| 激情小说亚洲一区| 99久久精品免费| 欧美日韩不卡视频| 日韩欧美国产综合一区| 欧美激情一区二区| 亚洲妇熟xx妇色黄| 国产成人啪午夜精品网站男同| www.亚洲激情.com| 91精品婷婷国产综合久久竹菊| 欧美一级理论性理论a| 在线观看日韩高清av| 制服.丝袜.亚洲.中文.综合| 国产一区二区精品久久91| 欧美一区二区三区免费大片 | 国产欧美一区视频| 亚洲精品视频在线观看网站| 亚洲一区在线观看视频| 亚洲一区欧美一区| 国产精品中文字幕日韩精品 | 午夜精品久久久久久不卡8050| 久久激情五月激情| 国产精品一二三区在线| 精品婷婷伊人一区三区三| 国产日韩成人精品| 久久99国产精品免费网站| 欧美日韩一区视频| 欧美激情中文不卡| 美女一区二区在线观看| 欧美视频自拍偷拍| 亚洲国产一区二区三区青草影视| 色婷婷一区二区三区四区| 亚洲伦理在线精品| 色综合久久88色综合天天6| 国产日韩欧美高清在线| 激情综合网最新| 精品女同一区二区| 青娱乐精品视频| 精品国产3级a| 国产激情视频一区二区在线观看| 精品美女在线播放| 91小视频在线免费看| 欧美精品一二三区| 一区二区三区蜜桃网| 91亚洲精华国产精华精华液| 一区二区三区日本| 欧美丰满少妇xxxbbb| 蜜桃一区二区三区在线| 久久久www成人免费无遮挡大片| 美女网站一区二区| 久久久久国色av免费看影院| 国产成人日日夜夜| 中文字幕不卡一区| 欧美日韩一区二区三区不卡 | 91精品国产免费| 六月婷婷色综合| 国产三级久久久| 欧美三区免费完整视频在线观看| 亚洲成av人片在www色猫咪| 欧美α欧美αv大片| 99久久夜色精品国产网站| 日日骚欧美日韩| 亚洲色欲色欲www在线观看| 日韩欧美国产1| 色猫猫国产区一区二在线视频| 一区二区三区精品在线| 欧美一区二区在线免费播放| 国产精品99久| 麻豆高清免费国产一区| 久久综合久久久久88| 欧美天堂一区二区三区| 成人午夜大片免费观看| 首页亚洲欧美制服丝腿| 久久精品视频免费观看| 日韩一区二区三区观看| 99国产精品久久久久久久久久| 免费高清在线视频一区·| 亚洲精品老司机| 亚洲日本va午夜在线影院| 欧美韩国一区二区| 精品精品国产高清一毛片一天堂| 欧美日本一区二区三区| 成人激情综合网站| 不卡一区二区中文字幕| 亚洲第一搞黄网站| 亚洲r级在线视频| 欧洲视频一区二区| 欧美性视频一区二区三区| 在线视频一区二区三区| 欧美在线不卡一区| 欧美日韩视频不卡| 91精品久久久久久久99蜜桃| 日韩欧美一级精品久久| 欧美一个色资源| 亚洲精品一区二区三区99| 欧美成人精品1314www| 日韩精品一区二区三区四区视频 | 韩国一区二区在线观看| 久久精品国产77777蜜臀| 国产成人综合在线播放| 色乱码一区二区三区88| 91麻豆精品国产91久久久久久久久 | 国产欧美一区二区精品婷婷| 日韩精品一区二区三区视频| 久久精品视频一区| 亚洲欧洲精品成人久久奇米网| 亚洲国产毛片aaaaa无费看| 5858s免费视频成人| 精品欧美乱码久久久久久1区2区| 国产日韩精品一区二区浪潮av| 亚洲免费观看高清完整| 蜜臀av亚洲一区中文字幕| 99麻豆久久久国产精品免费 | 久久亚洲春色中文字幕久久久| 国产无人区一区二区三区| 亚洲精品ww久久久久久p站| 蜜桃免费网站一区二区三区| 99久久伊人久久99| 欧美日韩一区二区三区视频| 久久久久久久综合| 亚洲精选视频免费看| 岛国一区二区三区| 欧美精品一区二区三区蜜臀| 午夜不卡在线视频| 色噜噜夜夜夜综合网| 欧美国产精品中文字幕|