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

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

?? point.java

?? Postgis是Postgres的Gis空間引擎,支持空間索引和空間操作,擴展了很多空間類型
?? JAVA
字號:
/* * Point.java *  * PostGIS extension for PostgreSQL JDBC driver - geometry model *  * (C) 2004 Paul Ramsey, pramsey@refractions.net *  * (C) 2005 Markus Schaber, markus.schaber@logix-tt.com *  * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation, either version 2.1 of the License. *  * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. *  * You should have received a copy of the GNU Lesser General Public License * along with this library; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or visit the web at * http://www.gnu.org. *  * $Id: Point.java 2345 2006-05-10 10:47:35Z mschaber $ */package org.postgis;import org.postgresql.util.PGtokenizer;import java.sql.SQLException;public class Point extends Geometry {    /* JDK 1.5 Serialization */    private static final long serialVersionUID = 0x100;    public static final boolean CUTINTS = true;    public int hashCode() {        return super.hashCode() ^ hashCode(x) ^ hashCode(y) ^ hashCode(z) ^ hashCode(m);    }    public static int hashCode(double value) {        long v = Double.doubleToLongBits(value);        return (int) (v ^ (v >>> 32));    }    protected boolean equalsintern(Geometry otherg) {        Point other = (Point) otherg;        return equals(other);    }    public final boolean equals(Point other) {        boolean xequals = x == other.x;        boolean yequals = y == other.y;        boolean zequals = ((dimension == 2) || (z == other.z));        boolean mequals = ((haveMeasure == false) || (m == other.m));        boolean result = xequals && yequals && zequals && mequals;        return result;    }    public Point getPoint(int index) {        if (index == 0) {            return this;        } else {            throw new ArrayIndexOutOfBoundsException("Point only has a single Point! " + index);        }    }    /** Optimized versions for this special case */    public Point getFirstPoint() {        return this;    }    /** Optimized versions for this special case */    public Point getLastPoint() {        return this;    }    public int numPoints() {        return 1;    }    /**     * The X coordinate of the point.     * In most long/lat systems, this is the longitude.     */    public double x;    /**     * The Y coordinate of the point.     * In most long/lat systems, this is the latitude.     */    public double y;    /**     * The Z coordinate of the point.     * In most long/lat systems, this is a radius from the      * center of the earth, or the height / elevation over     * the ground.     */    public double z;    /**     * The measure of the point.     */    public double m = 0.0;    public Point() {        super(POINT);    }    /** Constructs a new Point     * @param x the longitude / x ordinate     * @param y the latitude / y ordinate     * @param z the radius / height / elevation / z ordinate     */    public Point(double x, double y, double z) {        this();        this.x = x;        this.y = y;        this.z = z;        dimension = 3;    }    /** Constructs a new Point     * @param x the longitude / x ordinate     * @param y the latitude / y ordinate     */    public Point(double x, double y) {        this();        this.x = x;        this.y = y;        this.z = 0.0;        dimension = 2;    }    /**     * Construct a Point from EWKT.     *      * (3D and measures are legal, but SRID is not allowed).     */    public Point(String value) throws SQLException {        this(value, false);    }    /**     * Construct a Point     *      * @param value The text representation of this point     * @param haveM Hint whether we have a measure. This is used by other     *            geometries parsing inner points where we only get "1 2 3 4"     *            like strings without the "POINT(" and ")" stuff. If there     *            acutally is a POINTM prefix, this overrides the given value.     *            However, POINT does not set it to false, as they can be     *            contained in measured collections, as in     *            "GEOMETRYCOLLECTIONM(POINT(0 0 0))".     */    protected Point(String value, boolean haveM) throws SQLException {        this();        value = initSRID(value);        if (value.indexOf("POINTM") == 0) {            haveM = true;            value = value.substring(6).trim();        } else if (value.indexOf("POINT") == 0) {            value = value.substring(5).trim();        }        PGtokenizer t = new PGtokenizer(PGtokenizer.removePara(value), ' ');        try {            x = Double.valueOf(t.getToken(0)).doubleValue();            y = Double.valueOf(t.getToken(1)).doubleValue();            haveM |= t.getSize() == 4;            if ((t.getSize() == 3 && !haveM) || (t.getSize() == 4)) {                z = Double.valueOf(t.getToken(2)).doubleValue();                dimension = 3;            } else {                dimension = 2;            }            if (haveM) {                m = Double.valueOf(t.getToken(dimension)).doubleValue();            }        } catch (NumberFormatException e) {            throw new SQLException("Error parsing Point: " + e.toString());        }        haveMeasure = haveM;    }    public void innerWKT(StringBuffer sb) {        sb.append(x);        if (CUTINTS)            cutint(sb);        sb.append(' ');        sb.append(y);        if (CUTINTS)            cutint(sb);        if (dimension == 3) {            sb.append(' ');            sb.append(z);            if (CUTINTS)                cutint(sb);        }        if (haveMeasure) {            sb.append(' ');            sb.append(m);            if (CUTINTS)                cutint(sb);        }    }    private static void cutint(StringBuffer sb) {        int l = sb.length() - 2;        if ((sb.charAt(l + 1) == '0') && (sb.charAt(l) == '.')) {            sb.setLength(l);        }    }    public double getX() {        return x;    }    public double getY() {        return y;    }    public double getZ() {        return z;    }    public double getM() {        return m;    }    public void setX(double x) {        this.x = x;    }    public void setY(double y) {        this.y = y;    }    public void setZ(double z) {        this.z = z;    }    public void setM(double m) {        haveMeasure = true;        this.m = m;    }    public void setX(int x) {        this.x = x;    }    public void setY(int y) {        this.y = y;    }    public void setZ(int z) {        this.z = z;    }    public double distance(Point other) {        double tx, ty, tz;        if (this.dimension != other.dimension) {            throw new IllegalArgumentException("Points have different dimensions!");        }        tx = this.x - other.x;        switch (this.dimension) {        case 1 :            return Math.sqrt(tx * tx);        case 2 :            ty = this.y - other.y;            return Math.sqrt(tx * tx + ty * ty);        case 3 :            ty = this.y - other.y;            tz = this.z - other.z;            return Math.sqrt(tx * tx + ty * ty + tz * tz);        default :            throw new IllegalArgumentException("Illegal dimension of Point" + this.dimension);        }    }    public boolean checkConsistency() {        return super.checkConsistency() && (this.dimension == 3 || this.z == 0.0)                && (this.haveMeasure || this.m == 0.0);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品羞羞答答xxdd| 亚洲精品在线电影| 久久久久久久性| 国产一区二区在线免费观看| 精品少妇一区二区三区视频免付费| 麻豆高清免费国产一区| 久久久99精品免费观看不卡| 99re视频精品| 亚洲成在线观看| 日韩三级视频中文字幕| 国产一区二区精品久久91| 日韩av在线播放中文字幕| 中文字幕乱码日本亚洲一区二区 | 欧美一级国产精品| 欧美福利视频导航| 成人一区二区三区在线观看| 一个色妞综合视频在线观看| 日韩免费高清av| 欧美怡红院视频| 国产一区二区精品在线观看| 国产成人精品亚洲日本在线桃色| 亚洲成a人片在线不卡一二三区| 一区二区三区免费网站| 午夜精品久久久久久久久| 国产精品狼人久久影院观看方式| 欧美高清视频一二三区| 亚洲精品一区二区三区香蕉| 中国av一区二区三区| 久久婷婷一区二区三区| 欧美一级一区二区| 欧美群妇大交群中文字幕| 在线观看日产精品| 99精品欧美一区二区三区综合在线| 91一区一区三区| av男人天堂一区| 豆国产96在线|亚洲| 精品一区二区三区视频| 无吗不卡中文字幕| 国产成人久久精品77777最新版本| 99久久婷婷国产综合精品电影| 欧美午夜一区二区| 久久久电影一区二区三区| 亚洲同性gay激情无套| 国产精品美女久久久久久久| 亚洲国产aⅴ成人精品无吗| 1024成人网色www| 欧美午夜精品一区二区蜜桃| 欧美一级国产精品| 一区二区三区不卡视频在线观看| 美腿丝袜亚洲综合| 色综合色综合色综合色综合色综合| 高清beeg欧美| 欧美一卡2卡三卡4卡5免费| 成人免费小视频| 国产精品一区二区久久不卡 | 欧美图片一区二区三区| 国产日本欧美一区二区| 欧美激情在线看| 婷婷成人综合网| 在线观看视频91| 中文字幕在线不卡一区| 久久精品国产99| 国v精品久久久网| 精品国产91亚洲一区二区三区婷婷| 亚洲精品日产精品乱码不卡| 午夜精品久久久| 一本久道中文字幕精品亚洲嫩| 久久精品亚洲精品国产欧美| 久久不见久久见免费视频7| 欧美日韩国产在线播放网站| 一区二区三区资源| 色综合色综合色综合| 国产精品对白交换视频| 成人高清视频免费观看| 色吊一区二区三区| 日韩一级片网站| 日韩综合一区二区| 国产九色sp调教91| 26uuu亚洲综合色| 奇米影视7777精品一区二区| 国产69精品久久久久777| 精品粉嫩aⅴ一区二区三区四区| 天天色综合天天| 欧美日韩精品一区二区三区四区| 亚洲午夜免费电影| 884aa四虎影成人精品一区| 国产欧美日韩在线| 成人高清av在线| 亚洲视频一二区| 欧美在线观看一二区| 五月天丁香久久| 欧美va在线播放| 国产·精品毛片| 亚洲欧洲制服丝袜| 国产高清成人在线| 国产精品不卡在线观看| 91在线观看高清| 亚洲6080在线| 亚洲视频小说图片| 欧美丰满高潮xxxx喷水动漫| 另类小说一区二区三区| 国产蜜臀97一区二区三区| 91在线视频播放地址| 午夜精品久久久久久久| 久久伊人蜜桃av一区二区| 99久久夜色精品国产网站| 亚洲国产视频网站| 久久久久88色偷偷免费| 色综合中文字幕| 欧美国产日韩在线观看| 欧洲一区在线电影| 国产自产2019最新不卡| 日韩精品一区二区三区四区| 国产成人精品午夜视频免费| 亚洲黄色在线视频| 亚洲精品一区二区三区影院 | 日韩精品91亚洲二区在线观看| 精品乱人伦小说| 色婷婷精品大在线视频| 美女一区二区久久| 亚洲色图视频网| 欧美成人高清电影在线| 91视频免费观看| 国产精品一区专区| 天天综合天天综合色| 国产日产亚洲精品系列| 制服丝袜日韩国产| 色诱视频网站一区| 国产成人精品网址| 蜜桃久久精品一区二区| 亚洲尤物在线视频观看| 欧美日韩在线观看一区二区 | 亚洲视频一二区| 久久综合九色综合97婷婷女人 | 岛国一区二区在线观看| 亚洲va韩国va欧美va精品| 亚洲国产精品ⅴa在线观看| 欧美一区二区三区啪啪| 色94色欧美sute亚洲13| 成人网男人的天堂| 国产精品一区二区三区乱码| 裸体健美xxxx欧美裸体表演| 亚洲自拍偷拍av| 综合亚洲深深色噜噜狠狠网站| 2022国产精品视频| 日韩欧美123| 日韩一区二区精品在线观看| 欧美日韩精品免费观看视频| 欧美中文字幕一区| 一本到不卡精品视频在线观看| 成人高清免费观看| 99视频热这里只有精品免费| 成人免费电影视频| 国产乱码一区二区三区| 国产精品99久| 国产高清不卡二三区| 国产精品中文欧美| 国产福利91精品| 成人国产精品免费观看动漫| 春色校园综合激情亚洲| 国产iv一区二区三区| 成人免费毛片a| 91免费在线看| 在线观看国产精品网站| 欧美日韩国产bt| 日韩欧美亚洲国产另类| 精品剧情v国产在线观看在线| 亚洲精品在线电影| 中文子幕无线码一区tr| 亚洲免费高清视频在线| 欧美美女bb生活片| 午夜激情综合网| 欧美色大人视频| 精品乱人伦一区二区三区| 樱花草国产18久久久久| 国产一区二区三区黄视频| 欧美午夜免费电影| 欧美激情在线免费观看| 麻豆国产欧美日韩综合精品二区| 一本色道**综合亚洲精品蜜桃冫| 精品国产一区a| 日本成人在线电影网| 欧美中文字幕一区二区三区亚洲 | 99精品欧美一区二区蜜桃免费 | 日韩国产精品91| 在线观看视频一区二区| 国产精品久线在线观看| 国产精品综合二区| 精品国产一区二区三区久久久蜜月| 亚洲不卡在线观看| 欧洲在线/亚洲| 亚洲靠逼com| 91麻豆免费视频| 亚洲美女视频在线观看| 成人黄色大片在线观看| 国产亚洲精品久| 国产成人在线观看免费网站| 久久噜噜亚洲综合| 国产美女娇喘av呻吟久久| 亚洲精品在线观|