Examples of PixelScale


Examples of org.geotools.coverage.grid.io.imageio.geotiff.PixelScale

      final int keyRevisionMajor, final int keyRevisionMinor) {
    geoTiffEntries = new KeySortedList<Integer, GeoKeyEntry>();
    geoTiffDoubleParams = new double[GeoTiffConstants.ARRAY_ELEM_INCREMENT];
    geoTiffAsciiParams = new StringBuffer();
    modelTiePoints = new TiePoint[GeoTiffConstants.ARRAY_ELEM_INCREMENT];
    modelPixelScale = new PixelScale();
    modelTransformation = new double[16];
    addGeoKeyEntry(geoTIFFVersion, keyRevisionMajor, 1, keyRevisionMinor);
  }
View Full Code Here

Examples of org.geotools.coverage.grid.io.imageio.geotiff.PixelScale

            if(LOGGER.isLoggable(Level.FINE))
                LOGGER.log(Level.FINE,"Unable to find the model pixel scale tag");
            return null;
        }
   
        PixelScale retVal = new PixelScale();
        for (int i = 0; i < pixScales.length; i++)
            switch (i) {
            case 0:
                retVal.setScaleX(pixScales[i]);
                break;
            case 1:
                retVal.setScaleY(pixScales[i]);
                break;
            case 2:
                retVal.setScaleZ(pixScales[i]);
                break;
            }
        return retVal;
   
    }
View Full Code Here

Examples of org.geotools.coverage.grid.io.imageio.geotiff.PixelScale

    message.println(super.getMessage());

    // do the model pixel scale tags
    message.print("ModelPixelScaleTag: ");
    if (metadata != null) {
      final PixelScale modelPixelScales = metadata.getModelPixelScales();
      if (modelPixelScales != null) {
        message.println("[" + modelPixelScales.getScaleX() + ","
            + modelPixelScales.getScaleY() + ","
            + modelPixelScales.getScaleZ() + "]");
      } else {
        message.println("NOT AVAILABLE");
      }
    } else
      message.println("NOT AVAILABLE");
View Full Code Here

Examples of org.geotools.coverage.grid.io.imageio.geotiff.PixelScale

      //
      // we use tie points and pixel scales to build the grid to world
      //
      // model space
      final TiePoint[] tiePoints = metadata.getModelTiePoints();
      final PixelScale pixScales = metadata.getModelPixelScales();



      // here is the matrix we need to build
      final GeneralMatrix gm = new GeneralMatrix(3);
      final double scaleRaster2ModelLongitude = pixScales.getScaleX();
      final double scaleRaster2ModelLatitude = -pixScales.getScaleY();
      // "raster" space
      final double tiePointColumn = tiePoints[0].getValueAt(0)
          + ((forceToCellCenter || rasterType == GeoTiffConstants.RasterPixelIsArea) ? - 0.5: 0);
     
      // coordinates
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.