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

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

?? testparser.java

?? postGIS是一個能夠使用postSQL數據庫來管理GIS數據的小程序,充分發揮了該數據庫的空間管理功能,非常有用哦
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * Test.java *  * PostGIS extension for PostgreSQL JDBC driver - example and test classes *  * (C) 2004 Paul Ramsey, pramsey@refractions.net *  * (C) 2005 Markus Schaber, markus.schaber@logix-tt.com *  * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License. *  * This program 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 General Public License for more * details. *  * You should have received a copy of the GNU General Public License along with * this program; 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: TestParser.java 2340 2006-05-03 08:30:25Z mschaber $ */package examples;import org.postgis.Geometry;import org.postgis.PGgeometry;import org.postgis.binary.BinaryParser;import org.postgis.binary.BinaryWriter;import org.postgis.binary.ValueSetter;import org.postgresql.util.PGtokenizer;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;import java.sql.Types;public class TestParser {    public static String ALL = "ALL", ONLY10 = "ONLY10", EQUAL10 = "EQUAL10";    /**     * Our set of geometries to test.     */    public static final String[][] testset = new String[][]{        {            ALL, // 2D            "POINT(10 10)"},        {            ALL, // 3D with 3rd coordinate set to 0            "POINT(10 10 0)"},        {            ALL, // 3D            "POINT(10 10 20)"},        {            ALL, // 3D with scientific notation            "POINT(1e100 1.2345e-100 -2e-5)"},        {            ONLY10, // 2D + Measures            "POINTM(10 10 20)"},        {            ONLY10, // 3D + Measures            "POINT(10 10 20 30)"},        {            ALL, // broken format, see http://lists.jump-project.org/pipermail/jts-devel/2006-April/001572.html            "MULTIPOINT(11 12, 20 20)"},        {            ALL,// broken format            "MULTIPOINT(11 12 13, 20 20 20)"},        {            ONLY10,// broken format            "MULTIPOINTM(11 12 13, 20 20 20)"},        {            ONLY10,// broken format            "MULTIPOINT(11 12 13 14,20 20 20 20)"},        {            ALL, // OGC conforming format            "MULTIPOINT((11 12), (20 20))"},        {            ALL,            "MULTIPOINT((11 12 13), (20 20 20))"},        {            ONLY10,            "MULTIPOINTM((11 12 13), (20 20 20))"},        {            ONLY10,            "MULTIPOINT((11 12 13 14),(20 20 20 20))"},                    {            ALL,            "LINESTRING(10 10,20 20,50 50,34 34)"},        {            ALL,            "LINESTRING(10 10 20,20 20 20,50 50 50,34 34 34)"},        {            ONLY10,            "LINESTRINGM(10 10 20,20 20 20,50 50 50,34 34 34)"},        {            ONLY10,            "LINESTRING(10 10 20 20,20 20 20 20,50 50 50 50,34 34 34 50)"},        {            ALL,            "POLYGON((10 10,20 10,20 20,20 10,10 10),(5 5,5 6,6 6,6 5,5 5))"},        {            ALL,            "POLYGON((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0))"},        {            ONLY10,            "POLYGONM((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0))"},        {            ONLY10,            "POLYGON((10 10 0 7,20 10 0 7,20 20 0 7,20 10 0 7,10 10 0 7),(5 5 0 7,5 6 0 7,6 6 0 7,6 5 0 7,5 5 0 7))"},        {            ALL,            "MULTIPOLYGON(((10 10,20 10,20 20,20 10,10 10),(5 5,5 6,6 6,6 5,5 5)),((10 10,20 10,20 20,20 10,10 10),(5 5,5 6,6 6,6 5,5 5)))"},        {            ALL,            "MULTIPOLYGON(((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)))"},        {            ONLY10,            "MULTIPOLYGONM(((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)))"},        {            ONLY10,            "MULTIPOLYGON(((10 10 0 7,20 10 0 7,20 20 0 7,20 10 0 7,10 10 0 7),(5 5 0 7,5 6 0 7,6 6 0 7,6 5 0 7,5 5 0 7)),((10 10 0 7,20 10 0 7,20 20 0 7,20 10 0 7,10 10 0 7),(5 5 0 7,5 6 0 7,6 6 0 7,6 5 0 7,5 5 0 7)))"},        {            ALL,            "MULTILINESTRING((10 10,20 10,20 20,20 10,10 10),(5 5,5 6,6 6,6 5,5 5))"},        {            ALL,            "MULTILINESTRING((10 10 5,20 10 5,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0))"},        {            ONLY10,            "MULTILINESTRINGM((10 10 7,20 10 7,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0))"},        {            ONLY10,            "MULTILINESTRING((10 10 0 7,20 10 0 7,20 20 0 7,20 10 0 7,10 10 0 7),(5 5 0 7,5 6 0 7,6 6 0 7,6 5 0 7,5 5 0 7))"},        {            ALL,            "GEOMETRYCOLLECTION(POINT(10 10),POINT(20 20))"},        {            ALL,            "GEOMETRYCOLLECTION(POINT(10 10 20),POINT(20 20 20))"},        {            ONLY10,            "GEOMETRYCOLLECTIONM(POINT(10 10 20),POINT(20 20 20))"},        {            ONLY10,            "GEOMETRYCOLLECTION(POINT(10 10 20 7),POINT(20 20 20 7))"},        {            ALL,            "GEOMETRYCOLLECTION(LINESTRING(10 10 20,20 20 20, 50 50 50, 34 34 34),LINESTRING(10 10 20,20 20 20, 50 50 50, 34 34 34))"},        {            ALL,            "GEOMETRYCOLLECTION(POLYGON((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),POLYGON((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)))"},        {            ONLY10, // Cannot be parsed by 0.X servers, broken format            "GEOMETRYCOLLECTION(MULTIPOINT(10 10 10, 20 20 20),MULTIPOINT(10 10 10, 20 20 20))"},        {            ONLY10, // Cannot be parsed by 0.X servers, OGC conformant            "GEOMETRYCOLLECTION(MULTIPOINT((10 10 10), (20 20 20)),MULTIPOINT((10 10 10), (20 20 20)))"},        {            EQUAL10, // PostGIs 0.X "flattens" this geometry, so it is not            // equal after reparsing.            "GEOMETRYCOLLECTION(MULTILINESTRING((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)))"},        {            EQUAL10,// PostGIs 0.X "flattens" this geometry, so it is not equal            // after reparsing.            "GEOMETRYCOLLECTION(MULTIPOLYGON(((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0))),MULTIPOLYGON(((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0))))"},        {            ALL,            "GEOMETRYCOLLECTION(POINT(10 10 20),LINESTRING(10 10 20,20 20 20, 50 50 50, 34 34 34),POLYGON((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)))"},        {            ONLY10, // Collections that contain both X and MultiX do not work on            // PostGIS 0.x, broken format            "GEOMETRYCOLLECTION(POINT(10 10 20),MULTIPOINT(10 10 10, 20 20 20),LINESTRING(10 10 20,20 20 20, 50 50 50, 34 34 34),POLYGON((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),MULTIPOLYGON(((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0))),MULTILINESTRING((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)))"},        {            ONLY10, // Collections that contain both X and MultiX do not work on            // PostGIS 0.x, OGC conformant            "GEOMETRYCOLLECTION(POINT(10 10 20),MULTIPOINT((10 10 10), (20 20 20)),LINESTRING(10 10 20,20 20 20, 50 50 50, 34 34 34),POLYGON((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),MULTIPOLYGON(((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0))),MULTILINESTRING((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)))"},        {            ALL, // Old (bad) PostGIS 0.X Representation            "GEOMETRYCOLLECTION(EMPTY)"},        {            ALL,// new (correct) representation            "GEOMETRYCOLLECTION EMPTY"},        {            ONLY10,// new (correct) representation - does not work on 0.X            "POINT EMPTY"},        {            ONLY10,// new (correct) representation - does not work on 0.X            "LINESTRING EMPTY"},        {            ONLY10,// new (correct) representation - does not work on 0.X            "POLYGON EMPTY"},        {            ONLY10,// new (correct) representation - does not work on 0.X            "MULTIPOINT EMPTY"},        {            ONLY10,// new (correct) representation - does not work on 0.X            "MULTILINESTRING EMPTY"},        {            ONLY10,// new (correct) representation - does not work on 0.X            "MULTIPOLYGON EMPTY"},    // end    };    /** The srid we use for the srid tests */    public static final int SRID = 4326;    /** The string prefix we get for the srid tests */    public static final String SRIDPREFIX = "SRID=" + SRID + ";";    /** How much tests did fail? */    public static int failcount = 0;    private static BinaryParser bp = new BinaryParser();    private static final BinaryWriter bw = new BinaryWriter();    /** The actual test method */    public static void test(String WKT, Connection[] conns, String flags) throws SQLException {        System.out.println("Original:  " + WKT);        Geometry geom = PGgeometry.geomFromString(WKT);        String parsed = geom.toString();        System.out.println("Parsed:    " + parsed);        Geometry regeom = PGgeometry.geomFromString(parsed);        String reparsed = regeom.toString();        System.out.println("Re-Parsed: " + reparsed);        if (!geom.equals(regeom)) {            System.out.println("--- Geometries are not equal!");            failcount++;        } else if (!reparsed.equals(parsed)) {            System.out.println("--- Text Reps are not equal!");            failcount++;        } else {            System.out.println("Equals:    yes");        }        String hexNWKT = bw.writeHexed(regeom, ValueSetter.NDR.NUMBER);        System.out.println("NDRHex:    " + hexNWKT);        regeom = PGgeometry.geomFromString(hexNWKT);        System.out.println("ReNDRHex:  " + regeom.toString());        if (!geom.equals(regeom)) {            System.out.println("--- Geometries are not equal!");            failcount++;        } else {            System.out.println("Equals:    yes");        }        String hexXWKT = bw.writeHexed(regeom, ValueSetter.XDR.NUMBER);        System.out.println("XDRHex:    " + hexXWKT);        regeom = PGgeometry.geomFromString(hexXWKT);        System.out.println("ReXDRHex:  " + regeom.toString());        if (!geom.equals(regeom)) {            System.out.println("--- Geometries are not equal!");            failcount++;        } else {            System.out.println("Equals:    yes");        }        byte[] NWKT = bw.writeBinary(regeom, ValueSetter.NDR.NUMBER);        regeom = bp.parse(NWKT);        System.out.println("NDR:       " + regeom.toString());        if (!geom.equals(regeom)) {            System.out.println("--- Geometries are not equal!");            failcount++;        } else {            System.out.println("Equals:    yes");        }        byte[] XWKT = bw.writeBinary(regeom, ValueSetter.XDR.NUMBER);        regeom = bp.parse(XWKT);        System.out.println("XDR:       " + regeom.toString());        if (!geom.equals(regeom)) {            System.out.println("--- Geometries are not equal!");            failcount++;        } else {            System.out.println("Equals:    yes");        }        for (int i = 0; i < conns.length; i++) {            Connection connection = conns[i];            Statement statement = connection.createStatement();            int serverPostgisMajor = TestAutoregister.getPostgisMajor(statement);            if ((flags == ONLY10) && serverPostgisMajor < 1) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人午夜视频| 久久超碰97人人做人人爱| 国产区在线观看成人精品| 日韩一区二区精品葵司在线| 欧美日本在线一区| 日韩欧美国产三级| 久久精品一级爱片| 18涩涩午夜精品.www| 亚洲女女做受ⅹxx高潮| 一区二区三区在线免费观看 | 午夜电影网亚洲视频| 亚洲五月六月丁香激情| 肉丝袜脚交视频一区二区| 日韩成人免费在线| 久久99国产精品麻豆| 国产成人日日夜夜| 色悠悠亚洲一区二区| 欧美日韩一区不卡| 26uuu国产在线精品一区二区| 久久先锋影音av鲁色资源网| 国产精品国产a| 亚洲永久精品大片| 麻豆精品新av中文字幕| 国产黄色91视频| 色嗨嗨av一区二区三区| 欧美成人福利视频| 中文字幕在线免费不卡| 亚洲18影院在线观看| 精品一区二区三区在线观看| 成年人网站91| 777亚洲妇女| 国产女同性恋一区二区| 亚洲主播在线观看| 韩国一区二区三区| 在线观看一区二区精品视频| 欧美xxxxxxxx| 亚洲国产日韩av| 成人三级在线视频| 9191成人精品久久| 亚洲精品成人悠悠色影视| 老司机午夜精品| 91麻豆精品在线观看| 精品伦理精品一区| 午夜国产不卡在线观看视频| 成人免费看黄yyy456| 91精品婷婷国产综合久久性色 | 粉嫩高潮美女一区二区三区 | 国产99久久精品| 欧美日本在线播放| 亚洲人xxxx| 国产一区二区三区电影在线观看| 在线观看免费视频综合| 国产精品久久久久久久久免费桃花 | 日韩vs国产vs欧美| 91国偷自产一区二区使用方法| 欧美成人一区二区三区| 亚洲成人自拍网| 色噜噜狠狠成人中文综合| 国产日韩v精品一区二区| 日本不卡一二三| 欧美色手机在线观看| 亚洲日韩欧美一区二区在线| 成人av在线播放网站| 国产午夜精品一区二区| 国产高清久久久| www国产成人| 国产一区二区主播在线| 日韩亚洲欧美成人一区| 日产国产高清一区二区三区 | 精品国产乱码久久久久久图片 | 国产一区二三区| 久久综合久久鬼色| 国产麻豆精品在线观看| 国产欧美一区在线| 粉嫩绯色av一区二区在线观看| 久久女同性恋中文字幕| 国产黄色精品网站| 欧美激情艳妇裸体舞| www.在线成人| 亚洲另类春色校园小说| 欧美在线视频全部完| 亚洲成在人线在线播放| 欧美日韩成人激情| 美脚の诱脚舐め脚责91| 欧美激情在线看| 一本到高清视频免费精品| 有坂深雪av一区二区精品| 精品视频在线免费看| 日韩电影在线免费| 亚洲精品在线网站| www.亚洲色图.com| 午夜私人影院久久久久| 精品乱人伦小说| 豆国产96在线|亚洲| 国产精品美女久久久久久2018| 99精品视频在线观看| 天天综合网 天天综合色| 久久综合狠狠综合久久激情 | 亚洲男人电影天堂| 欧美精品电影在线播放| 久久黄色级2电影| 日本一区二区综合亚洲| 91麻豆精东视频| 亚洲国产美国国产综合一区二区| 3d动漫精品啪啪| 国产91露脸合集magnet| 一区二区三区四区乱视频| 欧美电影免费提供在线观看| 成人激情午夜影院| 天天射综合影视| 国产人成亚洲第一网站在线播放| 色欧美88888久久久久久影院| 日韩av高清在线观看| 日韩一区欧美一区| 日韩三级电影网址| 色中色一区二区| 国产一区二区在线免费观看| 一区二区三区在线视频免费观看 | 国模少妇一区二区三区| 亚洲女厕所小便bbb| 2023国产精品视频| 在线免费观看不卡av| 国产高清精品久久久久| 蜜桃视频在线一区| 亚洲一二三区在线观看| 国产精品美女一区二区三区| 日韩一区和二区| 欧美在线短视频| 成人自拍视频在线观看| 精品一区二区三区影院在线午夜| 一区二区高清免费观看影视大全| 国产欧美日韩三区| 337p日本欧洲亚洲大胆色噜噜| 在线观看av一区| 色综合夜色一区| 国产成人一区在线| 激情久久久久久久久久久久久久久久| 亚洲激情在线播放| 亚洲精品一卡二卡| 亚洲欧洲精品成人久久奇米网| 国产无一区二区| 国产亚洲一区二区三区在线观看| 欧美日韩精品一区二区三区蜜桃| 色婷婷综合在线| 91蜜桃免费观看视频| 成人久久视频在线观看| 国产一区二区按摩在线观看| 精品一区二区在线播放| 久久精品av麻豆的观看方式| 蜜臀av性久久久久蜜臀av麻豆| 亚洲成人一区二区| 五月天一区二区| 天涯成人国产亚洲精品一区av| 亚洲第一久久影院| 视频在线观看国产精品| 日本麻豆一区二区三区视频| 五月综合激情日本mⅴ| 日韩高清不卡一区二区三区| 五月天久久比比资源色| 日韩av电影一区| 久久国产精品99精品国产| 国产一区二区三区蝌蚪| 成人午夜精品在线| 91欧美一区二区| 在线国产电影不卡| 日韩小视频在线观看专区| 精品女同一区二区| 国产精品午夜久久| 亚洲男人天堂av| 日本成人中文字幕在线视频| 裸体歌舞表演一区二区| 国产成人精品亚洲777人妖| 成人av综合一区| 欧美特级限制片免费在线观看| 欧美日韩国产片| 中文字幕国产精品一区二区| 亚洲乱码国产乱码精品精98午夜| 午夜精品久久久久久久久| 国产一区二区h| 91一区一区三区| 日韩欧美视频一区| 国产精品美女久久久久久久久 | 中文字幕第一区| 亚洲一二三四在线| 国产精品一区一区| 欧美在线免费观看视频| 精品福利视频一区二区三区| 中文字幕日韩欧美一区二区三区| 亚洲成av人片在线观看| 韩日欧美一区二区三区| 欧美性大战久久久久久久| 精品国产一区二区三区不卡| 亚洲欧美一区二区在线观看| 日本欧洲一区二区| 91麻豆国产自产在线观看| 久久色在线观看| 日韩精品国产精品| 91美女片黄在线观看91美女| 久久久久久亚洲综合影院红桃| 性欧美疯狂xxxxbbbb|