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

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

?? geometry.java

?? Postgis是Postgres的Gis空間引擎,支持空間索引和空間操作,擴展了很多空間類型
?? JAVA
字號:
/* * Geometry.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: Geometry.java 2495 2006-10-02 15:58:43Z mschaber $ */package org.postgis;import java.io.Serializable;/** The base class of all geometries */public abstract class Geometry implements Serializable {    /* JDK 1.5 Serialization */    private static final long serialVersionUID = 0x100;    // OpenGIS Geometry types as defined in the OGC WKB Spec    // (May we replace this with an ENUM as soon as JDK 1.5    // has gained widespread usage?)    /** Fake type for linear ring */    public static final int LINEARRING = 0;    /**     * The OGIS geometry type number for points.     */    public static final int POINT = 1;    /**     * The OGIS geometry type number for lines.     */    public static final int LINESTRING = 2;    /**     * The OGIS geometry type number for polygons.     */    public static final int POLYGON = 3;    /**     * The OGIS geometry type number for aggregate points.     */    public static final int MULTIPOINT = 4;    /**     * The OGIS geometry type number for aggregate lines.     */    public static final int MULTILINESTRING = 5;    /**     * The OGIS geometry type number for aggregate polygons.     */    public static final int MULTIPOLYGON = 6;    /**     * The OGIS geometry type number for feature collections.     */    public static final int GEOMETRYCOLLECTION = 7;    public static final String[] ALLTYPES = new String[]{        "", // internally used LinearRing does not have any text in front of it        "POINT",        "LINESTRING",        "POLYGON",        "MULTIPOINT",        "MULTILINESTRING",        "MULTIPOLYGON",        "GEOMETRYCOLLECTION"};    /**     * The Text representations of the geometry types     */    public static String getTypeString(int type) {        if (type >= 0 && type <= 7) {            return ALLTYPES[type];        } else {            throw new IllegalArgumentException("Unknown Geometry type" + type);        }    }    // Properties common to all geometries    /**     * The dimensionality of this feature (2,3)     */    public int dimension;    /**     * Do we have a measure (4th dimension)     */    public boolean haveMeasure = false;    /**     * The OGIS geometry type of this feature. this is final as it never     * changes, it is bound to the subclass of the instance.     */    public final int type;    /**     * The spacial reference system id of this geometry, default (no srid) is -1     */    public int srid = -1;    /**     * Constructor for subclasses     *      * @param type has to be given by all subclasses.     */    protected Geometry(int type) {        this.type = type;    }    /**     * java.lang.Object hashCode implementation     */    public int hashCode() {        return dimension | (type * 4) | (srid * 32);    }    /**     * java.lang.Object equals implementation     */    public boolean equals(Object other) {        return (other != null) && (other instanceof Geometry) && equals((Geometry) other);    }    /**     * geometry specific equals implementation - only defined for non-null     * values     */    public boolean equals(Geometry other) {        return (other != null)                 && (this.dimension == other.dimension)                && (this.type == other.type)                && (this.srid == other.srid)                 && (this.haveMeasure == other.haveMeasure)                 && other.getClass().equals(this.getClass())                 && this.equalsintern(other);    }    /**     * Whether test coordinates for geometry - subclass specific code     *      * Implementors can assume that dimensin, type, srid and haveMeasure are     * equal, other != null and other is the same subclass.     */    protected abstract boolean equalsintern(Geometry other);    /**     * Return the number of Points of the geometry     */    public abstract int numPoints();    /**     * Get the nth Point of the geometry     *      * @param n the index of the point, from 0 to numPoints()-1;     * @throws ArrayIndexOutOfBoundsException in case of an emtpy geometry or     *             bad index.     */    public abstract Point getPoint(int n);    /**     * Same as getPoint(0);     */    public abstract Point getFirstPoint();    /**     * Same as getPoint(numPoints()-1);     */    public abstract Point getLastPoint();    /**     * The OGIS geometry type number of this geometry.     */    public int getType() {        return this.type;    }    /**     * Return the Type as String     */    public String getTypeString() {        return getTypeString(this.type);    }    /** Returns whether we have a measure */    public boolean isMeasured() {        return haveMeasure;    }    /**     * Queries the number of geometric dimensions of this geometry. This does     * not include measures, as opposed to the server.     *      * @return The dimensionality (eg, 2D or 3D) of this geometry.     */    public int getDimension() {        return this.dimension;    }    /**     * The OGIS geometry type number of this geometry.     */    public int getSrid() {        return this.srid;    }    /**     * Recursively sets the srid on this geometry and all contained     * subgeometries     */    public void setSrid(int srid) {        this.srid = srid;    }    public String toString() {        StringBuffer sb = new StringBuffer();        if (srid != -1) {            sb.append("SRID=");            sb.append(srid);            sb.append(';');        }        outerWKT(sb, true);        return sb.toString();    }    /**     * Render the WKT version of this Geometry (without SRID) into the given     * StringBuffer.     */    public void outerWKT(StringBuffer sb, boolean putM) {        sb.append(getTypeString());        if (putM && haveMeasure && dimension == 2) {            sb.append('M');        }        mediumWKT(sb);    }    public final void outerWKT(StringBuffer sb) {        outerWKT(sb, true);    }    /**     * Render the WKT without the type name, but including the brackets into the     * StringBuffer     */    protected void mediumWKT(StringBuffer sb) {        sb.append('(');        innerWKT(sb);        sb.append(')');    }    /**     * Render the "inner" part of the WKT (inside the brackets) into the     * StringBuffer.     */    protected abstract void innerWKT(StringBuffer SB);    /**     * backwards compatibility method     */    public String getValue() {        StringBuffer sb = new StringBuffer();        mediumWKT(sb);        return sb.toString();    }    /**     * Do some internal consistency checks on the geometry.     *      * Currently, all Geometries must have a valid dimension (2 or 3) and a     * valid type. 2-dimensional Points must have Z=0.0, as well as non-measured     * Points must have m=0.0. Composed geometries must have all equal SRID,     * dimensionality and measures, as well as that they do not contain NULL or     * inconsistent subgeometries.     *      * BinaryParser and WKTParser should only generate consistent geometries.     * BinaryWriter may produce invalid results on inconsistent geometries.     *      * @return true if all checks are passed.     */    public boolean checkConsistency() {        return (dimension >= 2 && dimension <= 3) && (type >= 0 && type <= 7);    }    /**     * Splits the SRID=4711; part of a EWKT rep if present and sets the srid.     *      * @returns value without the SRID=4711; part     */    protected String initSRID(String value) {        value = value.trim();        if (value.startsWith("SRID=")) {            int index = value.indexOf(';', 5); // sridprefix length is 5            if (index == -1) {                throw new IllegalArgumentException(                        "Error parsing Geometry - SRID not delimited with ';' ");            } else {                this.srid = Integer.parseInt(value.substring(5, index));                return value.substring(index + 1).trim();            }        } else {            return value;        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
911精品国产一区二区在线| 福利一区福利二区| 国产精品久久久久久久久免费桃花| 色婷婷亚洲综合| 不卡视频在线看| 国产老女人精品毛片久久| 日本中文字幕一区二区视频| 一区二区三区欧美久久| 亚洲图片另类小说| 国产精品久久久久9999吃药| 国产日本亚洲高清| 国产网站一区二区| 国产欧美一区二区精品性色超碰| 精品久久一区二区三区| 日韩三级在线免费观看| 日韩欧美激情一区| 欧美va亚洲va香蕉在线| 精品人在线二区三区| 欧美videos中文字幕| 久久综合精品国产一区二区三区| 欧美变态口味重另类| 精品国产一区二区三区四区四| 91精品啪在线观看国产60岁| 欧美一区二视频| 精品乱人伦小说| 欧美激情一区二区三区四区| 中文字幕在线观看不卡| 亚洲免费观看高清完整| 亚洲超碰97人人做人人爱| 日本中文字幕不卡| 国产成人亚洲精品狼色在线| 91原创在线视频| 欧美日韩精品欧美日韩精品一| 欧美久久久影院| 久久精品亚洲精品国产欧美kt∨| 国产精品国产精品国产专区不蜜| 一级日本不卡的影视| 日韩高清一区在线| 国产成人在线观看| 欧洲一区二区三区在线| 欧美一卡2卡三卡4卡5免费| 久久日韩粉嫩一区二区三区| 国产精品久久久久久久久免费樱桃| 亚洲一区二区在线免费观看视频| 美女尤物国产一区| av动漫一区二区| 欧美一区二区美女| 欧美国产成人精品| 视频一区二区三区在线| 国产成人免费在线| 在线成人小视频| 国产精品短视频| 日韩电影网1区2区| 日本久久一区二区三区| 久久综合九色综合欧美就去吻| 亚洲精品伦理在线| 国产精品一区二区不卡| 欧美日韩极品在线观看一区| 国产精品色婷婷久久58| 蜜臀久久99精品久久久久久9| 91社区在线播放| 精品国产免费久久| 午夜精品123| 99久久夜色精品国产网站| 精品久久久久99| 午夜精品视频一区| 色又黄又爽网站www久久| 久久久久久久久久美女| 五月天久久比比资源色| 91原创在线视频| 国产精品亲子伦对白| 激情久久五月天| 91精品久久久久久蜜臀| 亚洲成人一区在线| 91浏览器打开| 亚洲视频一区二区在线观看| 国产成人av资源| 久久综合狠狠综合| 狠狠色狠狠色综合系列| 日韩一二三四区| 人人狠狠综合久久亚洲| 欧美精品国产精品| 首页国产欧美久久| 欧美二区三区的天堂| 亚洲国产精品一区二区www在线| 97se亚洲国产综合在线| 亚洲精品中文字幕乱码三区| 91欧美一区二区| 亚洲私人影院在线观看| 色婷婷av久久久久久久| 亚洲乱码日产精品bd| 色av一区二区| 五月激情综合色| 91精品国产福利在线观看| 麻豆精品一区二区| 久久综合给合久久狠狠狠97色69| 看国产成人h片视频| 2019国产精品| 国产91丝袜在线18| 亚洲色图视频免费播放| 欧美亚洲免费在线一区| 青娱乐精品视频在线| 日韩视频123| 在线视频国产一区| 一区二区三区丝袜| 精品视频1区2区| 免费观看30秒视频久久| 国产片一区二区| 色屁屁一区二区| 麻豆国产精品777777在线| 国产欧美va欧美不卡在线| 99久久99久久综合| 亚洲国产视频直播| 亚洲精品在线观看视频| av一二三不卡影片| 午夜精品免费在线| 欧美国产日本视频| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 午夜成人免费视频| 国产性色一区二区| 欧美片网站yy| 懂色中文一区二区在线播放| 一区二区三区91| 精品理论电影在线观看 | 国产精品久久久久aaaa| 日本韩国精品一区二区在线观看| 石原莉奈在线亚洲三区| 国产精品私人影院| 日韩美一区二区三区| 91丨九色丨蝌蚪丨老版| 老司机午夜精品99久久| 亚洲男人的天堂网| 久久久美女毛片| 91精品国产福利在线观看| www.久久精品| 国产精品系列在线观看| 五月综合激情婷婷六月色窝| 中文字幕中文字幕一区| 久久综合丝袜日本网| 6080国产精品一区二区| 91浏览器入口在线观看| 成人精品鲁一区一区二区| 日日摸夜夜添夜夜添国产精品| 国产精品丝袜91| 久久精品男人天堂av| 欧美一二三区精品| 欧美日韩精品一二三区| 91美女精品福利| 成人99免费视频| 国产精品123区| 韩国av一区二区三区四区| 调教+趴+乳夹+国产+精品| 亚洲另类在线制服丝袜| 中文字幕欧美区| 国产欧美1区2区3区| 久久综合色天天久久综合图片| 日韩欧美成人一区二区| 日韩欧美国产成人一区二区| 欧美另类高清zo欧美| 91国产成人在线| 欧美图区在线视频| 欧美综合一区二区三区| 欧美亚洲国产一区二区三区| 色一情一乱一乱一91av| 色老汉一区二区三区| 在线免费一区三区| 欧美怡红院视频| 欧美精品三级日韩久久| 91精品国产色综合久久| 日韩一级二级三级| 精品成人一区二区三区四区| 久久亚洲精品国产精品紫薇| 久久影视一区二区| 国产精品私人影院| 亚洲欧美区自拍先锋| 亚洲一区二区三区中文字幕在线| 亚洲制服丝袜av| 日韩激情中文字幕| 久久福利视频一区二区| 国产精品66部| 99re这里只有精品首页| 在线观看一区二区精品视频| 777奇米成人网| 欧美精品一区二区久久婷婷| 中文字幕不卡在线播放| 亚洲乱码一区二区三区在线观看| 亚洲一区二区三区四区在线免费观看 | 欧美日韩成人综合天天影院| 欧美片在线播放| 欧美激情一区二区三区在线| 亚洲综合免费观看高清完整版| 精品无人码麻豆乱码1区2区 | 日本怡春院一区二区| 国内精品久久久久影院色 | 中文字幕永久在线不卡| 亚洲一区二区三区四区中文字幕| 久久精品噜噜噜成人88aⅴ | 久久久久久久免费视频了| 亚洲欧美日韩国产一区二区三区| 日韩综合小视频|