Package it.geosolutions.geoserver.rest.encoder.dimensions

Examples of it.geosolutions.geoserver.rest.encoder.dimensions.GSCoverageDimensionEncoder


        coverageEncoder.setSUGGESTED_TILE_SIZE("256,256");
        coverageEncoder.setUSE_JAI_IMAGEREAD(true);

        GSVersionDecoder v=reader.getGeoserverVersion();
        if (v.compareTo(GSVersionDecoder.VERSION.v24)>=0){
            GSCoverageDimensionEncoder gsCoverageDimensionEncoder = new GSCoverageDimensionEncoder(
                    "GRAY_INDEX", "GridSampleDimension[-Infinity,Infinity]", "-inf", "inf",
                    "dobson units³", "REAL_32BITS");
            coverageEncoder.addCoverageDimensionInfo(gsCoverageDimensionEncoder);           
        }
View Full Code Here


     * @param unit
     * @param dimensionType
     */
    public void addCoverageDimensionInfo(String name, String description, String rangeMin,
            String rangeMax, String unit, String dimensionType) {
        final GSCoverageDimensionEncoder coverageDimensionEncoder = new GSCoverageDimensionEncoder(
                name, description, rangeMin, rangeMax, unit, dimensionType);
        addCoverageDimensionInfo(coverageDimensionEncoder);
    }
View Full Code Here

    @Test
    public void testCoverageDimension() throws IOException {

        List<GSCoverageDimensionEncoder> list = coverage.getEncodedDimensionsInfoList();

        GSCoverageDimensionEncoder coverageDimension1 = list.get(0);
        Assert.assertEquals("GRAY_INDEX", coverageDimension1.getName());
        Assert.assertEquals("GridSampleDimension[-Infinity,Infinity]",
                coverageDimension1.getDescription());
        Assert.assertEquals("-inf", coverageDimension1.getRangeMin());
        Assert.assertEquals("inf", coverageDimension1.getRangeMax());
        Assert.assertEquals("dobson units³", coverageDimension1.getUnit());
        Assert.assertEquals("REAL_32BITS", coverageDimension1.getDimensionTypeName());
    }
View Full Code Here

      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",
                "dobson units³", "REAL_32BITS");
        encoder.addCoverageDimensionInfo(gsCoverageDimensionEncoder);

      if (LOGGER.isInfoEnabled())
View Full Code Here

                    final Element dimensionTypeElement = coverageDimension
                            .getChild("dimensionType");
                    if (dimensionTypeElement != null) {
                        dimensionTypeName = dimensionTypeElement.getChildText("name");
                    }
                    final GSCoverageDimensionEncoder coverageDimensionEncoder = new GSCoverageDimensionEncoder(
                            name, description, rangeMin, rangeMax, unit, dimensionTypeName);
                    dimensionList.add(coverageDimensionEncoder);
                }

            }
View Full Code Here

TOP

Related Classes of it.geosolutions.geoserver.rest.encoder.dimensions.GSCoverageDimensionEncoder

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.