Tabnine Logo
Vocabulary.formatInternational
Code IndexAdd Tabnine to your IDE (free)

How to use
formatInternational
method
in
org.geotools.resources.i18n.Vocabulary

Best Java code snippets using org.geotools.resources.i18n.Vocabulary.formatInternational (Showing top 20 results out of 315)

origin: org.geotools/gt-coverage

/**
 * Constructs a new sample dimension with the same categories and
 * units than the specified sample dimension.
 *
 * @param other The other sample dimension, or {@code null}.
 */
protected GridSampleDimension(final GridSampleDimension other) {
  if (other != null) {
    inverse            = other.inverse;
    categories         = other.categories;
    isGeophysics       = other.isGeophysics;
    hasQualitative     = other.hasQualitative;
    hasQuantitative    = other.hasQuantitative;
    sampleToGeophysics = other.sampleToGeophysics;
    description        = other.description;
  } else {
    // 'inverse' will be set when needed.
    categories         = null;
    isGeophysics       = false;
    hasQualitative     = false;
    hasQuantitative    = false;
    sampleToGeophysics = null;
    description        = Vocabulary.formatInternational(VocabularyKeys.UNTITLED);
  }
}
origin: org.geotools/gt2-coverage

/**
 * Constructs a new sample dimension with the same categories and
 * units than the specified sample dimension.
 *
 * @param other The other sample dimension, or {@code null}.
 */
protected GridSampleDimension(final GridSampleDimension other) {
  if (other != null) {
    inverse            = other.inverse;
    categories         = other.categories;
    isGeophysics       = other.isGeophysics;
    hasQualitative     = other.hasQualitative;
    hasQuantitative    = other.hasQuantitative;
    sampleToGeophysics = other.sampleToGeophysics;
    description        = other.description;
  } else {
    // 'inverse' will be set when needed.
    categories         = null;
    isGeophysics       = false;
    hasQualitative     = false;
    hasQuantitative    = false;
    sampleToGeophysics = null;
    description        = Vocabulary.formatInternational(VocabularyKeys.UNTITLED);
  }
}
origin: mapplus/spatial_statistics_for_geotools_udig

protected GridCoverage2D createGridCoverage(CharSequence name, RenderedImage image,
    GridSampleDimension[] bands, double noDataValue, double minValue, double maxValue,
    ReferencedEnvelope extent) {
  if (image == null || extent == null) {
    throw new NullPointerException("WritableRaster is null!");
  }
  if (noDataValue == minValue) {
    noDataValue = minValue - 1;
  } else if (noDataValue == maxValue) {
    noDataValue = maxValue + 1;
  } else if (noDataValue > minValue && noDataValue < maxValue) {
    noDataValue = minValue - 1;
  }
  CharSequence noDataName = Vocabulary.formatInternational(VocabularyKeys.NODATA);
  // setting metadata
  final Map<CharSequence, Double> properties = new HashMap<CharSequence, Double>();
  properties.put("Maximum", Double.valueOf(maxValue));
  properties.put("Minimum", Double.valueOf(minValue));
  // properties.put("Mean", 1.0);
  // properties.put("StdDev", 1.0);
  properties.put(noDataName, Double.valueOf(noDataValue));
  properties.put("GC_NODATA", Double.valueOf(noDataValue));
  GridCoverageFactory factory = CoverageFactoryFinder.getGridCoverageFactory(null);
  return factory.create(name, image, extent, bands, null, properties);
}
origin: org.geotools/gt-coverage

/**
 * Creates a {@link CartesianCS} for a {@link ProjectedCRS} given the
 * provided {@link Unit}.
 * 
 * @todo consider caching this items
 * @param linearUnit
 *            to be used for building this {@link CartesianCS}.
 * @return an instance of {@link CartesianCS} using the provided
 *         {@link Unit},
 */
private DefaultCartesianCS createProjectedCS(Unit linearUnit) {
  if (linearUnit == null)
    throw new NullPointerException(
        "Error when trying to create a PCS using this linear UoM ");
  if (!linearUnit.isCompatible(SI.METER))
    throw new IllegalArgumentException(
        "Error when trying to create a PCS using this linear UoM "
            + linearUnit.toString());
  return new DefaultCartesianCS(Vocabulary.formatInternational(
      VocabularyKeys.PROJECTED).toString(),
      new DefaultCoordinateSystemAxis(Vocabulary
          .formatInternational(VocabularyKeys.EASTING), "E",
          AxisDirection.EAST, linearUnit),
      new DefaultCoordinateSystemAxis(Vocabulary
          .formatInternational(VocabularyKeys.NORTHING), "N",
          AxisDirection.NORTH, linearUnit));
}
origin: locationtech/geowave

Vocabulary.formatInternational(VocabularyKeys.NORMAL),
(Color) null,
NumberRange.create(minimum, maximum)),}
? new Category[] {
  new Category(
    Vocabulary.formatInternational(VocabularyKeys.NODATA),
    new Color(0, 0, 0, 0),
    NumberRange.create(nodata, nodata))}
origin: org.geotools/gt-imagemosaic

public SimplifiedGridSampleDimension(
    CharSequence description,
    SampleDimensionType type, 
    ColorInterpretation color,
    double nodata,
    double minimum, 
    double maximum, 
    double scale, 
    double offset,
    Unit<?> unit) {
  super(description,!Double.isNaN(nodata)?
      new Category[]{new Category(Vocabulary
          .formatInternational(VocabularyKeys.NODATA), new Color[]{new Color(0, 0, 0, 0)} , NumberRange
          .create(nodata, nodata), NumberRange
          .create(nodata, nodata))}:null,unit);
  this.nodata=nodata;
  this.minimum=minimum;
  this.maximum=maximum;
  this.scale=scale;
  this.offset=offset;
  this.unit=unit;
  this.type=type;
  this.color=color;
  this.bkg=new Category("Background", Utils.TRANSPARENT, 0);
}
origin: mapplus/spatial_statistics_for_geotools_udig

CharSequence noDataName = Vocabulary.formatInternational(VocabularyKeys.NODATA);
Category nan = new Category(noDataName, new Color[] { new Color(255, 255, 255, 0) },
    NumberRange.create(noDataValue, noDataValue));
origin: mapplus/spatial_statistics_for_geotools_udig

CharSequence noDataName = Vocabulary.formatInternational(VocabularyKeys.NODATA);
origin: org.geotools/gt-geotiff

if (!Double.isNaN(noData)){
  noDataCategory = new Category(Vocabulary
      .formatInternational(VocabularyKeys.NODATA), new Color[] { new Color(0, 0, 0, 0) }, NumberRange
      .create(noData, noData), NumberRange
      .create(noData, noData));
origin: mapplus/spatial_statistics_for_geotools_udig

InternationalString noDataName = Vocabulary.formatInternational(VocabularyKeys.NODATA);
Object objNoData = srcCoverage.getProperty(noDataName.toString());
if (objNoData != null && objNoData instanceof Number) {
origin: org.geotools/gt-arcgrid

if (Double.isNaN(inNoData)) {
  nan = new Category(Vocabulary
      .formatInternational(VocabularyKeys.NODATA), new Color(
      0, 0, 0, 0), 0);
      .formatInternational(VocabularyKeys.NODATA),
      new Color[] { new Color(0, 0, 0, 0) }, 
      NumberRange.create(0, 0),
origin: org.geotools/gt2-coverage

  this.description = list.getName();
} else {
  this.description = Vocabulary.formatInternational(VocabularyKeys.UNTITLED);
origin: org.geotools/gt-coverage

  this.description = list.getName();
} else {
  this.description = Vocabulary.formatInternational(VocabularyKeys.UNTITLED);
origin: org.geotools/gt2-arcgrid

if (Double.isNaN(inNoData)) {
  nan = new Category(Vocabulary
      .formatInternational(VocabularyKeys.NODATA), new Color(
      0, 0, 0, 0), 0);
  values = new Category("values", demColors, new NumberRange(1,
      .formatInternational(VocabularyKeys.NODATA),
      new Color[] { new Color(0, 0, 0, 0) }, new NumberRange(
          0, 0), new NumberRange(inNoData, inNoData));
origin: org.geotools/gt-arcsde

    Vocabulary.formatInternational(VocabularyKeys.NODATA), transparent,
    noDataValue);
categories = new Category[] { valuesCat, nodataCat };
origin: mapplus/spatial_statistics_for_geotools_udig

properties.put(Vocabulary.formatInternational(VocabularyKeys.NODATA), noData);
properties.put("GC_NODATA", noData);
origin: mapplus/spatial_statistics_for_geotools_udig

properties.put(Vocabulary.formatInternational(VocabularyKeys.NODATA), noData);
properties.put("GC_NODATA", noData);
origin: mapplus/spatial_statistics_for_geotools_udig

properties.put(Vocabulary.formatInternational(VocabularyKeys.NODATA), noData);
properties.put("GC_NODATA", noData);
origin: mapplus/spatial_statistics_for_geotools_udig

properties.put(Vocabulary.formatInternational(VocabularyKeys.NODATA), noData);
properties.put("GC_NODATA", noData);
origin: mapplus/spatial_statistics_for_geotools_udig

properties.put(Vocabulary.formatInternational(VocabularyKeys.NODATA), noData);
properties.put("GC_NODATA", noData);
org.geotools.resources.i18nVocabularyformatInternational

Javadoc

Gets an international string for the given key. This method does not check for the key validity. If the key is invalid, then a MissingResourceException may be thrown when a InternationalString#toString method is invoked.

Popular methods of Vocabulary

  • format
    Gets a string for the given key are replace all occurence of "{0}", "{1}", with values of arg0, arg1
  • getResources
    Returns resources in the given locale.
  • getString
  • getBundle
  • getLogRecord
  • getLabel
  • getMenuLabel

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now