Package org.geotools.util

Examples of org.geotools.util.Version


*/
public class GeoToolsTest {
   
    @Ignore
    public void testGeoTools(){
         Version version = GeoTools.getVersion();
         assertEquals( 2, version.getMajor() );
         assertTrue( version.getMinor().toString().startsWith("6") );
    }
View Full Code Here


     * Constrcutor for use with a specific wcs 1.1 request.
     */
    public WcsKvpParser(String key, Class binding, String request ) {
        super(key, binding);
        setService( "wcs" );
        setVersion( new Version( "1.1.1" ) );
        setRequest( request );
    }
View Full Code Here

     * Xml Configuration
     */
    WCSConfiguration configuration;

    public WcsXmlReader(String element, String version, WCSConfiguration configuration) {
        super(new QName(WCS.NAMESPACE, element), new Version(version), "wcs");
        this.configuration = configuration;
    }
View Full Code Here

    public WfsXmlReader(String element, Configuration configuration, Catalog catalog) {
        this(element, configuration, catalog, "wfs");
    }
   
    protected WfsXmlReader(String element, Configuration configuration, Catalog catalog, String serviceId) {
        super(new QName(WFS.NAMESPACE, element), new Version("1.0.0"), serviceId);
        this.configuration = configuration;
        this.catalog = catalog;
    }
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

       
        Map<String,Object> map = reader.wcs();
        readCommon( wcs, map, gs );
       
        //wcs.setGMLPrefixing((Boolean)map.get( "gmlPrefixing"));
        wcs.getVersions().add( new Version( "1.0.0") );
        wcs.getVersions().add( new Version( "1.1.1") );
       
        return wcs;
    }
View Full Code Here

    }
   
    @Override
    protected WCSInfo initialize(WCSInfo service) {
        if ( service.getVersions().isEmpty() ) {
            service.getVersions().add( new Version( "1.0.0") );
            service.getVersions().add( new Version( "1.1.1" ) );
        }
        return service;
    }
View Full Code Here

    public Logger LOGGER = Logging.getLogger("org.geoserver.wps");

    private WPSConfiguration configuration;

    public WpsXmlReader(String element, String version, WPSConfiguration configuration) {
        super(new QName(org.geotools.wps.WPS.NAMESPACE, element), new Version("1.0.0"), "wps");
        this.configuration = configuration;
    }
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

    protected WPSInfo initialize(WPSInfo service) {
        if ( service.getVersions() == null ) {
            ((WPSInfoImpl)service).setVersions( new ArrayList() );
        }
        if ( service.getVersions().isEmpty() ) {
            service.getVersions().add( new Version( "1.0.0") );
        }
        return service;
    }
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.