Tabnine Logo
CRSPair.label
Code IndexAdd Tabnine to your IDE (free)

How to use
label
method
in
org.apache.sis.referencing.operation.CRSPair

Best Java code snippets using org.apache.sis.referencing.operation.CRSPair.label (Showing top 6 results out of 315)

origin: org.apache.sis.core/sis-referencing

  /**
   * Returns a string representation of this key.
   */
  @Override
  public String toString() {
    return label(sourceCRS) + " ⟶ " + label(targetCRS);
  }
}
origin: apache/sis

  /**
   * Returns a string representation of this key.
   */
  @Override
  public String toString() {
    return label(sourceCRS) + " ⟶ " + label(targetCRS);
  }
}
origin: apache/sis

/**
 * Returns an error message for "No path found from sourceCRS to targetCRS".
 * This is used for the construction of {@link OperationNotFoundException}.
 *
 * @param  source  the source CRS.
 * @param  target  the target CRS.
 * @return a default error message.
 */
private static String notFoundMessage(final IdentifiedObject source, final IdentifiedObject target) {
  return Resources.format(Resources.Keys.CoordinateOperationNotFound_2, CRSPair.label(source), CRSPair.label(target));
}
origin: org.apache.sis.core/sis-referencing

/**
 * Returns an error message for "No path found from sourceCRS to targetCRS".
 * This is used for the construction of {@link OperationNotFoundException}.
 *
 * @param  source  the source CRS.
 * @param  target  the target CRS.
 * @return a default error message.
 */
private static String notFoundMessage(final IdentifiedObject source, final IdentifiedObject target) {
  return Resources.format(Resources.Keys.CoordinateOperationNotFound_2, CRSPair.label(source), CRSPair.label(target));
}
origin: apache/sis

/**
 * Returns a name for an object derived from the specified one.
 * This method builds a name of the form "{@literal <original identifier>} (step 1)"
 * where "(step 1)" may be replaced by "(step 2)", "(step 3)", <i>etc.</i> if this
 * method has already been invoked for the same identifier (directly or indirectly).
 */
private Map<String,?> derivedFrom(final IdentifiedObject object) {
  Identifier oldID = object.getName();
  Object p = identifierOfStepCRS.get(oldID);
  if (p instanceof Identifier) {
    oldID = (Identifier) p;
    p = identifierOfStepCRS.get(oldID);
  }
  final int count = (p != null) ? (Integer) p + 1 : 1;
  final Identifier newID = new NamedIdentifier(Citations.SIS, oldID.getCode() + " (step " + count + ')');
  identifierOfStepCRS.put(newID, oldID);
  identifierOfStepCRS.put(oldID, count);
  final Map<String,Object> properties = new HashMap<>(4);
  properties.put(IdentifiedObject.NAME_KEY, newID);
  properties.put(IdentifiedObject.REMARKS_KEY, Vocabulary.formatInternational(
            Vocabulary.Keys.DerivedFrom_1, CRSPair.label(object)));
  return properties;
}
origin: org.apache.sis.core/sis-referencing

/**
 * Returns a name for an object derived from the specified one.
 * This method builds a name of the form "{@literal <original identifier>} (step 1)"
 * where "(step 1)" may be replaced by "(step 2)", "(step 3)", <i>etc.</i> if this
 * method has already been invoked for the same identifier (directly or indirectly).
 */
private Map<String,?> derivedFrom(final IdentifiedObject object) {
  Identifier oldID = object.getName();
  Object p = identifierOfStepCRS.get(oldID);
  if (p instanceof Identifier) {
    oldID = (Identifier) p;
    p = identifierOfStepCRS.get(oldID);
  }
  final int count = (p != null) ? (Integer) p + 1 : 1;
  final Identifier newID = new NamedIdentifier(Citations.SIS, oldID.getCode() + " (step " + count + ')');
  identifierOfStepCRS.put(newID, oldID);
  identifierOfStepCRS.put(oldID, count);
  final Map<String,Object> properties = new HashMap<>(4);
  properties.put(IdentifiedObject.NAME_KEY, newID);
  properties.put(IdentifiedObject.REMARKS_KEY, Vocabulary.formatInternational(
            Vocabulary.Keys.DerivedFrom_1, CRSPair.label(object)));
  return properties;
}
org.apache.sis.referencing.operationCRSPairlabel

Javadoc

Returns the name of the GeoAPI interface implemented by the specified object. In the GeographicCRS or EllipsoidalCS cases, the trailing CRS or CS suffix is replaced by the number of dimensions (e.g. "Geographic3D").

Popular methods of CRSPair

  • <init>
    Creates a CRSPair for the specified source and target CRS.
  • toString
    Returns a string representation of this key.

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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