Package org.geotools.util

Examples of org.geotools.util.Version.compareTo()


                Version last = v.next();
   
                for (; v.hasNext();) {
                    Version current = v.next();
   
                    if (current.compareTo(accepted.last()) > 0) {
                        break;
                    }
   
                    last = current;
                }
View Full Code Here


    }

    @Override
    protected void createLine3DTable() throws Exception {
        Version version = getVersion();
        boolean atLeastV2 = version.compareTo(V_2_0_0) >= 0;
        String geometryType = atLeastV2 ? "geometry(LINESTRINGZ, 4326)" : "geometry";
       
        // setup table
        run("CREATE TABLE \"line3d\"(\"fid\" serial PRIMARY KEY, \"id\" int, "
                + "\"geom\" " + geometryType + ", \"name\" varchar )");
View Full Code Here

    }

    @Override
    protected void createPoint3DTable() throws Exception {
        Version version = getVersion();
        boolean atLeastV2 = version.compareTo(V_2_0_0) >= 0;
        String geometryType = atLeastV2 ? "geometry(POINTZ, 4326)" : "geometry";
       
        // setup table
        run("CREATE TABLE \"point3d\"(\"fid\" serial PRIMARY KEY, \"id\" int, "
                + "\"geom\" " + geometryType + ", \"name\" varchar )");
View Full Code Here

        request.setVersion(version.toString());
       
        //JD: most wms 1.3 client implementations still use x/y rather than i/j, so we support those
        // too when i/j not specified when not running in strict cite compliance mode
        String colPixel, rowPixel;
        if(version.compareTo(WMS.VERSION_1_3_0) >= 0) {
            colPixel = "I";
            rowPixel = "J";
           
            if (!kvp.containsKey(colPixel) && !kvp.containsKey(rowPixel)) {
                if (!wms.getServiceInfo().isCiteCompliant() && kvp.containsKey("X")
View Full Code Here

                    .getNativeCRS());
            // are we in crazy wms 1.3 land?
            if(wli.getNativeCRS() instanceof GeographicCRS) {
                WebMapServer mapServer = wms.getWebMapServer(null);
                Version version = new Version(mapServer.getCapabilities().getVersion());
                if(version.compareTo(new Version("1.3.0")) >= 0) {
                    // flip axis, the wms code won't actually use the crs
                    double minx = re.getMinX();
                    double miny = re.getMinY();
                    double maxx = re.getMaxX();
                    double maxy = re.getMaxY();
View Full Code Here

        request.setVersion(version.toString());
       
        //JD: most wms 1.3 client implementations still use x/y rather than i/j, so we support those
        // too when i/j not specified when not running in strict cite compliance mode
        String colPixel, rowPixel;
        if(version.compareTo(WMS.VERSION_1_3_0) >= 0) {
            colPixel = "I";
            rowPixel = "J";
           
            if (!kvp.containsKey(colPixel) && !kvp.containsKey(rowPixel)) {
                if (!wms.getServiceInfo().isCiteCompliant() && kvp.containsKey("X")
View Full Code Here

                Version last = v.next();
   
                for (; v.hasNext();) {
                    Version current = v.next();
   
                    if (current.compareTo(accepted.last()) > 0) {
                        break;
                    }
   
                    last = current;
                }
View Full Code Here

                Version last = v.next();
   
                for (; v.hasNext();) {
                    Version current = v.next();
   
                    if (current.compareTo(accepted.last()) > 0) {
                        break;
                    }
   
                    last = current;
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.