Package org.geotools.util

Examples of org.geotools.util.Version


    super.initialize(service);
        if (service.getExceptionFormats() == null) {
            ((WCSInfoImpl) service).setExceptionFormats(new ArrayList<String>());
        }  
        if (service.getVersions().isEmpty()) {
            service.getVersions().add(new Version("1.0.0"));
            service.getVersions().add(new Version("1.1.1"));
        }
        Version v201 = new Version("2.0.1");       
        if(!service.getVersions().contains(v201)) {
            service.getVersions().add(v201);
        }
        if(service.getSRS() == null) {
            ((WCSInfoImpl) service).setSRS(new ArrayList<String>());
View Full Code Here


            request.setFeatureCount(maxFeatures);
        } catch (NumberFormatException ex) {
            // do nothing, FEATURE_COUNT is optional
        }

        Version version = wms.negotiateVersion(request.getVersion());
        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

            public String concat(String param1, String param2) {
                return param1 + param2;
            }
        };

        Service service = new Service("directCallService", serviceBean, new Version("1.0.0"),
                Collections.singletonList("concat"));
        Method method = serviceBean.getClass().getMethod("concat", String.class, String.class);
        Object[] parameters = {"p1", "p2"};
        Operation opDescriptor = new Operation("concat", service, method, parameters);
View Full Code Here

*/
public class OWS11AcceptVersionsKvpParser extends KvpParser {

    public OWS11AcceptVersionsKvpParser() {
        super("AcceptVersions", AcceptVersionsType.class);
        setVersion( new Version( "1.1.1" ) );
    }
View Full Code Here

        }
        if (service.getVersions() == null) {
            ((CSWInfoImpl) service).setVersions(new ArrayList());
        }
        if (service.getVersions().isEmpty()) {
            service.getVersions().add(new Version("2.0.2"));
        }

        return service;
    }
View Full Code Here

public class AcceptVersionsKvpParser extends org.geoserver.ows.kvp.AcceptVersionsKvpParser {

    public AcceptVersionsKvpParser() {
        super(AcceptVersionsType.class);
        setService( "wcs" );
        setVersion( new Version( "1.1.1" ) );
    }
View Full Code Here

            throws Exception {
       
        CSWInfoImpl csw = new CSWInfoImpl();
        csw.setId("csw");
        csw.setGeoServer(geoServer);
        csw.getVersions().add( new Version( "2.0.2") );
       
        return csw;
    }
View Full Code Here

            throws Exception {
       
        WPSInfoImpl wps = new WPSInfoImpl();
        wps.setId("wps");
        wps.setGeoServer(geoServer);
        wps.getVersions().add( new Version( "1.0.0") );
       
        return wps;
    }
View Full Code Here

        ogr.setGdalData(Ogr2OgrTestUtil.getGdalData());

        // the EMF objects used to talk with the output format
        gft = WfsFactory.eINSTANCE.createGetFeatureType();
        fct = WfsFactory.eINSTANCE.createFeatureCollectionType();
        op = new Operation("GetFeature", new Service("WFS", null, new Version("1.0.0"),
                Arrays.asList("GetFeature")), null, new Object[] { gft });
    }
View Full Code Here

import org.xml.sax.InputSource;


public class MessageXmlParser extends XmlRequestReader {
    public MessageXmlParser() {
        this(null, new Version("1.0.0"));
    }
View Full Code Here

TOP

Related Classes of org.geotools.util.Version

Copyright © 2018 www.massapicom. 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.