Examples of Hints


Examples of org.geotools.factory.Hints

        File auxFile = TestData.file(this, "O3NO2-noZ.xml");
        FileUtils.copyFileToDirectory(file, mosaic);
        FileUtils.copyFileToDirectory(auxFile, mosaic);
        file = new File(mosaic, "O3NO2-noZ.nc");
       
        final Hints hints= new Hints(Hints.DEFAULT_COORDINATE_REFERENCE_SYSTEM, CRS.decode("EPSG:4326", true));     
        hints.put(Utils.AUXILIARY_FILES_PATH, new File(mosaic,"O3NO2-noZ.xml").getAbsolutePath()); // impose def

        // Get format
        final AbstractGridFormat format = (AbstractGridFormat) GridFormatFinder.findFormat(file.toURI().toURL(),hints);
        final NetCDFReader reader = (NetCDFReader) format.getReader(file.toURI().toURL(), hints);
       
View Full Code Here

Examples of org.geotools.factory.Hints

        assertTrue(mosaic.mkdirs());
        File file = TestData.file(this, "ascatl1.nc");
        FileUtils.copyFileToDirectory(file, mosaic);
        file = new File(mosaic, "ascatl1.nc");
       
      final Hints hints= new Hints(Hints.DEFAULT_COORDINATE_REFERENCE_SYSTEM, CRS.decode("EPSG:4326", true));
      hints.add(new Hints(Utils.EXCLUDE_MOSAIC, true));

      // Get format
      final AbstractGridFormat format = (AbstractGridFormat) GridFormatFinder.findFormat(file.toURI().toURL(),hints);
      final NetCDFReader reader = (NetCDFReader) format.getReader(file.toURI().toURL(), hints);
     
View Full Code Here

Examples of org.geotools.factory.Hints

        assertTrue(mosaic.mkdirs());
        File file = TestData.file(this, "DUMMY.GOME2.NO2.PGL.nc");
        FileUtils.copyFileToDirectory(file, mosaic);
        file = new File(mosaic, "DUMMY.GOME2.NO2.PGL.nc");
       
        final Hints hints= new Hints(Hints.DEFAULT_COORDINATE_REFERENCE_SYSTEM, CRS.decode("EPSG:4326", true));
        // Get format
        final AbstractGridFormat format = (AbstractGridFormat) GridFormatFinder.findFormat(file.toURI().toURL(),hints);
        final NetCDFReader reader = (NetCDFReader) format.getReader(file.toURI().toURL(), hints);
       
        assertNotNull(format);
View Full Code Here

Examples of org.geotools.factory.Hints

    @Test
    @Ignore
    public void IASI() throws Exception {
       
        final URL testURL = TestData.url(this, "IASI_C_EUMP_20121120062959_31590_eps_o_l2.nc");
        final Hints hints= new Hints(Hints.DEFAULT_COORDINATE_REFERENCE_SYSTEM, CRS.decode("EPSG:4326", true));
        // Get format
        final AbstractGridFormat format = (AbstractGridFormat) GridFormatFinder.findFormat(testURL,hints);
        final NetCDFReader reader = (NetCDFReader) format.getReader(testURL, hints);
        assertNotNull(format);
        assertNotNull(reader);
View Full Code Here

Examples of org.geotools.factory.Hints

    @SuppressWarnings("rawtypes")
    public void timeAdditionalDimRanges() throws Exception {
        final String dlrFolder = "/work/data/DLR/samplesForMosaic";
        final File file = new File(dlrFolder);
        final URL url = DataUtilities.fileToURL(file);
        final Hints hints = new Hints(Hints.DEFAULT_COORDINATE_REFERENCE_SYSTEM, CRS.decode("EPSG:4326", true));
       
        // Get format
        final AbstractGridFormat format = (AbstractGridFormat) GridFormatFinder.findFormat(url, hints);
        final ImageMosaicReader reader = getReader(url, format);
        String[] names = reader.getGridCoverageNames();
View Full Code Here

Examples of org.geotools.factory.Hints

    //
    // managing hints
    //
    // //
    if (this.hints == null)
      this.hints= new Hints()
    if (hints != null) {
      // prevent the use from reordering axes
      this.hints.add(hints);
    }
  }
View Full Code Here

Examples of org.geotools.factory.Hints

    //
    // managing hints
    //
    // //
    if (this.hints == null)
      this.hints= new Hints()
    if (hints != null) {
            this.hints.add(hints);
    }

                // GridCoverageFactory initialization
View Full Code Here

Examples of org.geotools.factory.Hints

//    final ImageReader reader = readerSPI.createReaderInstance();
//    final ImageInputStream inStream = wmsRequest ? ImageIO
//        .createImageInputStream(((URL) source).openStream()) : ImageIO
//        .createImageInputStream(source);
//   
    final Hints newHints = (Hints) hints.clone();
//    if (!wmsRequest) {
//      reader.setInput(inStream);
//      if (!reader.isImageTiled(imageChoice.intValue())) {
//        final Dimension tileSize = ImageUtilities
//            .toTileSize(new Dimension(reader.getWidth(imageChoice
View Full Code Here

Examples of org.geotools.factory.Hints

                //
                // managing hints
                //
                // //
                if (this.hints == null)
                        this.hints= new Hints();       
                if (hints != null) {
                        // prevent the use from reordering axes
                        hints.remove(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER);
                        this.hints.add(hints);
                        this.hints.add(new Hints(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER,
                                Boolean.TRUE));
                       
                }

        }
View Full Code Here

Examples of org.geotools.factory.Hints

        // Creation of a dummy Request
        CoverageReadRequest request = new CoverageReadRequest();
        // Definition of the parameters
        CoordinateReferenceSystem crs = source.getCoordinateReferenceSystem();
        Rectangle rasterArea = new Rectangle(0, 0, 10, 10);
        Hints hints = new Hints();
        String handle = "test_handle";
        DateRange range = new DateRange(new Date(10000), new Date(20000));
        DateRangeTreeSet set = new DateRangeTreeSet();
        set.add(range);
        Filter filter = Filter.INCLUDE;
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.