亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
一本色道综合亚洲| 国产精品全国免费观看高清| 91在线观看下载| 国产999精品久久| 福利一区二区在线观看| 国产精品一区二区你懂的| 国产成人自拍网| 99久久久久久| 色综合久久九月婷婷色综合| 欧美影院一区二区三区| 91精品综合久久久久久| 精品成人一区二区三区四区| 久久久久九九视频| 亚洲欧洲性图库| 亚洲777理论| 麻豆精品精品国产自在97香蕉| 六月婷婷色综合| 粉嫩aⅴ一区二区三区四区五区| 成人视屏免费看| 欧美在线观看一区二区| 欧美一区二区三区啪啪| 久久亚洲欧美国产精品乐播| 中文字幕在线一区| 日韩国产精品91| 国产精品一区二区三区四区| 在线观看三级视频欧美| 欧美电影免费提供在线观看| 中文字幕中文字幕在线一区 | 一区二区视频在线看| 亚洲r级在线视频| 国产福利一区二区三区在线视频| 色狠狠综合天天综合综合| 日韩欧美色综合| 亚洲激情成人在线| 精品中文av资源站在线观看| 99精品久久免费看蜜臀剧情介绍| 日韩一二三区不卡| 亚洲女爱视频在线| 国产福利一区在线| 日韩欧美黄色影院| 亚洲伦理在线精品| 国产精品2024| 91精品婷婷国产综合久久性色| 国产精品色一区二区三区| 免费高清在线视频一区·| 99久久精品免费看| www成人在线观看| 奇米影视在线99精品| 一本一本大道香蕉久在线精品| 久久嫩草精品久久久精品| 日本不卡一区二区三区| 色综合亚洲欧洲| 国产精品免费看片| 在线视频中文字幕一区二区| 欧美成人福利视频| 亚洲激情av在线| 国产·精品毛片| 久久中文娱乐网| 麻豆成人综合网| 日韩一区二区精品葵司在线| 亚洲三级在线看| 成人av电影在线播放| 亚洲国产精品成人久久综合一区| 免费在线观看不卡| 日韩欧美一区中文| 麻豆精品久久精品色综合| 91精品国产免费久久综合| 午夜不卡av在线| 欧美日韩在线综合| 亚洲成人黄色影院| 欧美日韩在线直播| 日韩国产高清影视| 精品三级av在线| 极品少妇xxxx精品少妇偷拍| 亚洲精品一区二区三区精华液| 美女高潮久久久| 久久蜜臀中文字幕| 粗大黑人巨茎大战欧美成人| 国产精品免费久久| 99在线精品免费| 夜夜夜精品看看| 91.com在线观看| 美女高潮久久久| 国产欧美一区二区精品久导航 | 亚洲一区二区三区精品在线| 制服丝袜亚洲播放| 日韩av电影天堂| 国产欧美一区二区精品忘忧草| av在线一区二区三区| 亚洲美女屁股眼交3| 欧美伦理电影网| 国内外成人在线| 中文字幕成人在线观看| 91视频在线观看免费| 五月婷婷欧美视频| 精品粉嫩超白一线天av| proumb性欧美在线观看| 天堂影院一区二区| 久久精品亚洲精品国产欧美 | 国产精品亚洲综合一区在线观看| 久久久久久久网| 色女孩综合影院| 久久99精品视频| 国产精品第一页第二页第三页| 欧美性生活久久| 国产精品18久久久久久vr| 亚洲免费观看视频| 精品日产卡一卡二卡麻豆| 99久久国产综合色|国产精品| 亚洲mv在线观看| 国产精品久久久久永久免费观看| 欧美日韩高清一区二区三区| 国产成人免费视频网站| 日韩激情av在线| 国产精品不卡视频| 26uuu精品一区二区三区四区在线| 99re视频这里只有精品| 国产综合色精品一区二区三区| 麻豆精品蜜桃视频网站| 国产精品久久久久9999吃药| 欧美一区二区三区视频免费| 91视频免费看| 国产99久久久国产精品潘金网站| 日韩不卡在线观看日韩不卡视频| 亚洲欧洲另类国产综合| 精品国产99国产精品| 欧美绝品在线观看成人午夜影视| 成人app网站| 国产一区不卡在线| 美女一区二区三区| 亚洲一卡二卡三卡四卡| 国产精品亲子乱子伦xxxx裸| 精品日韩av一区二区| 在线不卡欧美精品一区二区三区| 色噜噜夜夜夜综合网| 成人综合婷婷国产精品久久免费| 麻豆91免费看| 麻豆精品蜜桃视频网站| 日韩高清中文字幕一区| 无吗不卡中文字幕| 亚洲不卡av一区二区三区| 亚洲天堂久久久久久久| 成人免费一区二区三区视频 | 午夜婷婷国产麻豆精品| 亚洲蜜臀av乱码久久精品| 亚洲日本丝袜连裤袜办公室| 国产精品你懂的| 国产精品成人午夜| 亚洲欧美二区三区| 亚洲精品少妇30p| 亚洲综合另类小说| 亚洲午夜av在线| 丝袜美腿亚洲一区二区图片| 日韩国产在线观看一区| 丝袜美腿亚洲色图| 蜜臀av一区二区在线观看| 久久国产麻豆精品| 国产在线精品一区二区不卡了| 捆绑紧缚一区二区三区视频| 蜜臂av日日欢夜夜爽一区| 久久精品国产秦先生| 国产一区二区中文字幕| 成人一区二区在线观看| 日本韩国视频一区二区| 欧美视频日韩视频在线观看| 制服丝袜中文字幕亚洲| 日韩欧美一区电影| 欧美国产综合色视频| 自拍偷拍欧美激情| 亚洲成人激情社区| 黑人巨大精品欧美一区| 成人美女在线视频| 在线免费观看不卡av| 国产日产欧美一区二区视频| 国产精品另类一区| 亚洲成a人v欧美综合天堂下载| 日韩精品久久理论片| 国产精品一区二区在线观看网站| 99久久精品国产一区二区三区| 欧美日韩在线精品一区二区三区激情 | 欧美激情一区二区在线| 国产精品成人午夜| 午夜久久久影院| 国模套图日韩精品一区二区| 99国产精品久久| 日韩欧美国产综合一区| 亚洲欧美在线视频| 男女视频一区二区| 成人一区二区视频| 91精品国产综合久久久久久久| 欧美草草影院在线视频| 亚洲精品中文字幕在线观看| 久久不见久久见免费视频1| 91色乱码一区二区三区| 2019国产精品| 日韩国产欧美在线播放| 91片黄在线观看| 久久久久久9999| 亚洲va欧美va人人爽午夜| 成人免费视频播放|