Package it.geosolutions.geoserver.rest.encoder.metadata

Examples of it.geosolutions.geoserver.rest.encoder.metadata.GSDimensionInfoEncoder


                    "dobson unitsĀ³", "REAL_32BITS");
            coverageEncoder.addCoverageDimensionInfo(gsCoverageDimensionEncoder);           
        }

            // activate time
            final GSDimensionInfoEncoder time=new GSDimensionInfoEncoder(true);
            time.setPresentation(Presentation.LIST);
            // set time metadata
            coverageEncoder.setMetadata("time", time);
            // not active elevation
            coverageEncoder.setMetadata("elevation", new GSDimensionInfoEncoder());

       
       
        assertTrue(publisher.createWorkspace(wsName));
       
View Full Code Here


      encoder.addKeyword("...");
      encoder.addKeyword("KEYWORD_N");
     
     
      // setting dimensions (into metadata)
      final GSDimensionInfoEncoder timeDimension=new GSDimensionInfoEncoder(true);
      timeDimension.setPresentation(Presentation.CONTINUOUS_INTERVAL);
      encoder.setMetadata("time", timeDimension);
     
      if (LOGGER.isInfoEnabled())
        LOGGER.info(encoder.toString());
     
      final Element el=ElementUtils.contains(encoder.getRoot(),GSResourceEncoder.METADATA);
      Assert.assertNotNull(el);
      LOGGER.info("contains_key:"+el.toString());
     
      final GSDimensionInfoEncoder elevationDimension=new GSDimensionInfoEncoder(true);
      elevationDimension.setPresentation(Presentation.LIST);
      encoder.setMetadata("elevation", elevationDimension);
     
        // setting dimensions (since gs-2.4.x)
      GSCoverageDimensionEncoder gsCoverageDimensionEncoder = new GSCoverageDimensionEncoder(
                "GRAY_INDEX", "GridSampleDimension[-Infinity,Infinity]", "-inf", "inf",
View Full Code Here

        final GSImageMosaicEncoder coverageEncoder = copyParameters(wsName, coverageStoreName,
                csname);
 
              
        // activate time dimension
        final GSDimensionInfoEncoder time=new GSDimensionInfoEncoder(true);
        time.setUnit("Seconds");
        time.setUnitSymbol("s");
        time.setPresentation(Presentation.CONTINUOUS_INTERVAL);
        coverageEncoder.setMetadataDimension("time", time);
       
        // activate run which is a custom dimension
        final GSDimensionInfoEncoder date=new GSDimensionInfoEncoder(true);
        date.setPresentation(Presentation.LIST);
        coverageEncoder.setMetadataDimension("date", date,true);
       
        final GSDimensionInfoEncoder depth=new GSDimensionInfoEncoder(true);
        depth.setPresentation(Presentation.LIST);
        depth.setUnit("Meters");
        depth.setUnitSymbol("m");
        coverageEncoder.setMetadataDimension("depth", depth,true);
       
        // persiste the changes
        boolean config=publisher.configureCoverage(coverageEncoder, wsName, csname);
        assertTrue(config);
View Full Code Here

TOP

Related Classes of it.geosolutions.geoserver.rest.encoder.metadata.GSDimensionInfoEncoder

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.