Examples of GeoTiffIIOMetadataEncoder


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

                }
                   

                // creating geotiff metadata
                final CRS2GeoTiffMetadataAdapter adapter = new CRS2GeoTiffMetadataAdapter(crs);
                final GeoTiffIIOMetadataEncoder metadata = adapter.parseCoordinateReferenceSystem();
       
                // setting georeferencing
                setGeoReference(crs, metadata, tr, range,retainAxesOrder);
       
                // handling noData
                final double inNoData = CoverageUtilities.getBackgroundValues((GridCoverage2D) gc)[0];
                if (!Double.isNaN(inNoData))
                    metadata.setNoData(inNoData);
                if (metadataKeyValue != null && !metadataKeyValue.isEmpty()) {
                    metadata.setTiffTagsMetadata(metadataKeyValue);
                }
       
                //
                // write image
                // writing ALWAYS the geophysics vew of the data
View Full Code Here

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

   *
   * @throws GeoTiffException
   */
  public GeoTiffIIOMetadataEncoder parseCoordinateReferenceSystem()
      throws GeoTiffException {
    final GeoTiffIIOMetadataEncoder metadata = new GeoTiffIIOMetadataEncoder();
    // /////////////////////////////////////////////////////////////////////
    //
    // CREATING METADATA AND SETTING BASE FIELDS FOR THEM
    //
    // /////////////////////////////////////////////////////////////////////
    // model type
    final int modelType = (crs instanceof ProjectedCRS) ? 1 : 2;

    // GTModelTypeGeoKey
    metadata
        .addGeoShortParam(GeoTiffConstants.GTModelTypeGeoKey, modelType);

    switch (modelType) {
    // /////////////////////////////////////////////////////////////////////
    //
View Full Code Here

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

        if (crs instanceof ProjectedCRS || crs instanceof GeographicCRS) {

            // creating geotiff metadata
            final CRS2GeoTiffMetadataAdapter adapter = (CRS2GeoTiffMetadataAdapter) CRS2GeoTiffMetadataAdapter
                    .get(crs);
            final GeoTiffIIOMetadataEncoder metadata = adapter
                    .parseCoordinateReferenceSystem();

            if (!Double.isNaN(inNoData)) {
                metadata.setNoData(inNoData);
            }

            // setting georeferencing
            setGeoReference(crs, metadata, tr, range);
View Full Code Here

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

        // /////////////////////////////////////////////////////////////////////
        if (crs instanceof ProjectedCRS || crs instanceof GeographicCRS) {

            // creating geotiff metadata
            final CRS2GeoTiffMetadataAdapter adapter = new CRS2GeoTiffMetadataAdapter(crs);
            final GeoTiffIIOMetadataEncoder metadata = adapter.parseCoordinateReferenceSystem();
            if (!Double.isNaN(inNoData))
                metadata.setNoData(inNoData);
            if (metadataKeyValue != null && !metadataKeyValue.isEmpty()) {
                metadata.setTiffTagsMetadata(metadataKeyValue);
            }

            // setting georeferencing
            setGeoReference(crs, metadata, tr, range);
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.