Codota Logo
org.apache.sis.internal.referencing
Code IndexAdd Codota to your IDE (free)

How to use org.apache.sis.internal.referencing

Best Java code snippets using org.apache.sis.internal.referencing (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.apache.sis.core/sis-referencing

  @Override protected String formatTo(final Formatter formatter) {
    WKTUtilities.appendParamMT(values, formatter);
    return WKTKeywords.Param_MT;
  }
});
origin: org.apache.sis.core/sis-referencing

/**
 * Returns the message to put in an {@link UnavailableFactoryException} having the given cause.
 */
private String canNotUse(final String cause) {
  return Resources.forLocale(locale).getString(Resources.Keys.CanNotUseGeodeticParameters_2, Constants.EPSG, cause);
}
origin: org.apache.sis.core/sis-referencing

  /**
   * Creates a remarks for parameters that are not formally EPSG parameter.
   *
   * @param  origin  the name of the projection for where the parameter is formally used.
   * @return a remarks saying that the parameter is actually defined in {@code origin}.
   */
  static InternationalString notFormalParameter(final String origin) {
    return Resources.formatInternational(Resources.Keys.NotFormalProjectionParameter_1, origin);
  }
}
origin: org.apache.sis.core/sis-referencing

/**
 * Returns the factory for Coordinate Operation objects. This method fetches the factory when first needed.
 */
private DefaultCoordinateOperationFactory getCoordinateOperationFactory() {
  if (copFactory == null) {
    copFactory = CoordinateOperations.factory();
  }
  return copFactory;
}
origin: org.apache.sis.core/sis-referencing

/**
 * Returns resources in the locale specified in the given property map. This convenience method looks
 * for the {@link #LOCALE_KEY} entry. If the given map is null, or contains no entry for the locale key,
 * or the value is not an instance of {@link Locale}, then this method fallback on the default locale.
 *
 * @param  properties  the map of properties, or {@code null} if none.
 * @return resources in the given locale.
 * @throws MissingResourceException if resources can't be found.
 */
public static Resources forProperties(final Map<?,?> properties) throws MissingResourceException {
  return forLocale(getLocale(properties));
}
origin: org.apache.sis.core/sis-referencing

/** Creates a new temporary ellipsoid with explicitely provided Δa and Δf values. */
Ellipsoid(Map<String,?> name, double a, double b, double Δa, double Δf) {
  super(name, a, b, Formulas.getInverseFlattening(a, b), false, Units.METRE);
  this.Δa = Δa;
  this.Δf = Δf;
}
origin: apache/sis

/**
 * Tests if this set has no element.
 *
 * @return {@code true} if this set has no element.
 */
@Override
public final boolean isEmpty() {
  return (numCached == 0) && !canPullMore();
}
origin: apache/sis

/**
 * Gets an international string for the given key. This method does not check for the key
 * validity. If the key is invalid, then a {@link MissingResourceException} may be thrown
 * when a {@link InternationalString#toString(Locale)} method is invoked.
 *
 * @param  key  the key for the desired string.
 * @return an international string for the given key.
 */
public static InternationalString formatInternational(final short key) {
  return new International(key);
}
origin: apache/sis

/**
 * Returns resources in the given locale.
 *
 * @param  locale  the locale, or {@code null} for the default locale.
 * @return resources in the given locale.
 * @throws MissingResourceException if resources can't be found.
 */
public static Resources forLocale(final Locale locale) throws MissingResourceException {
  return getBundle(Resources.class, locale);
}
origin: apache/sis

/**
 * Returns the coordinate system of a geocentric CRS using axes in the given unit of measurement.
 *
 * @param  linearUnit  the unit of measurement for the geocentric CRS axes.
 * @return the coordinate system for a geocentric CRS with axes using the given unit of measurement.
 *
 * @since 0.6
 */
@Override
public CartesianCS getGeocentricCS(final Unit<Length> linearUnit) {
  return Legacy.standard(linearUnit);
}
origin: org.apache.sis.core/sis-referencing

/**
 * Invoked on deserialization. Replace this instance by one of the constants, if applicable.
 */
private Object readResolve() throws ObjectStreamException {
  if (equals(DATUM_SHIFT_APPLIED)) return DATUM_SHIFT_APPLIED;
  if (equals(DATUM_SHIFT_OMITTED)) return DATUM_SHIFT_OMITTED;
  return this;
}
origin: org.apache.sis.core/sis-referencing

  /**
   * Formats this group as a pseudo-<cite>Well Known Text</cite> element.
   *
   * @param  formatter  the formatter where to format the inner content of this WKT element.
   * @return {@code "ParameterGroup"}.
   */
  @Override
  protected String formatTo(final Formatter formatter) {
    WKTUtilities.appendParamMT(this, formatter);
    return WKTKeywords.ParameterGroup;
  }
}
origin: org.apache.sis.core/sis-referencing

/**
 * Returns a human-readable text for this constant.
 *
 * @param  locale  the desired locale, or {@code null}.
 * @return a human-readable text in the given locale if possible.
 */
@Override
public String toString(final Locale locale) {
  return Resources.forLocale(locale).getString(opposite
      ? Resources.Keys.InverseOperationUsesOppositeSign
      : Resources.Keys.InverseOperationUsesSameSign);
}
origin: org.apache.sis.core/sis-referencing

/**
 * Tests if this set has no element.
 *
 * @return {@code true} if this set has no element.
 */
@Override
public final boolean isEmpty() {
  return (numCached == 0) && !canPullMore();
}
origin: org.apache.sis.core/sis-referencing

/**
 * Gets an international string for the given key. This method does not check for the key
 * validity. If the key is invalid, then a {@link MissingResourceException} may be thrown
 * when a {@link InternationalString#toString(Locale)} method is invoked.
 *
 * @param  key  the key for the desired string.
 * @return an international string for the given key.
 */
public static InternationalString formatInternational(final short key) {
  return new International(key);
}
origin: org.apache.sis.core/sis-referencing

/**
 * Returns resources in the given locale.
 *
 * @param  locale  the locale, or {@code null} for the default locale.
 * @return resources in the given locale.
 * @throws MissingResourceException if resources can't be found.
 */
public static Resources forLocale(final Locale locale) throws MissingResourceException {
  return getBundle(Resources.class, locale);
}
origin: org.apache.sis.core/sis-referencing

/**
 * Returns the coordinate system of a geocentric CRS using axes in the given unit of measurement.
 *
 * @param  linearUnit  the unit of measurement for the geocentric CRS axes.
 * @return the coordinate system for a geocentric CRS with axes using the given unit of measurement.
 *
 * @since 0.6
 */
@Override
public CartesianCS getGeocentricCS(final Unit<Length> linearUnit) {
  return Legacy.standard(linearUnit);
}
origin: org.apache.sis.core/sis-referencing

  @Override
  protected String formatTo(final Formatter formatter) {
    WKTUtilities.appendParamMT(parameters, formatter);
    return WKTKeywords.Param_MT;
  }
};
origin: org.apache.sis.core/sis-referencing

/**
 * Gets a string for the given key from this resource bundle or one of its parents.
 *
 * @param  key  the key for the desired string.
 * @return the string for the given key.
 * @throws MissingResourceException if no object for the given key can be found.
 */
public static String format(final short key) throws MissingResourceException {
  return forLocale(null).getString(key);
}
origin: org.apache.sis.core/sis-referencing

/**
 * Returns {@code true} if an element exists at the given index.
 * The element is not loaded immediately.
 *
 * <p><strong>NOTE: This method is for use by iterators only.</strong>
 * It is not suited for more general usage since it does not check for
 * negative index and for skipped elements.</p>
 */
final boolean exists(final int index) {
  assert index <= numCached : index;
  return (index < numCached) || canPullMore();
}
org.apache.sis.internal.referencing

Most used classes

  • ReferencingUtilities
    A set of static methods working on GeoAPI referencing objects. Some of those methods may be useful,
  • AffineTransform2D
    Transforms two-dimensional coordinate points using an affine transform. This class both extends Affi
  • LazySet
    An immutable set built from an iterator, which will be filled only when needed. This implementation
  • TransverseMercator$Zoner
    Computes zone numbers and central meridian.
  • DirectPositionView$Double
    The double-precision version of DirectPositionView.
  • ShapeUtilities,
  • DefinitionVerifier,
  • Formulas,
  • GeodeticObjectBuilder,
  • Resources,
  • IntervalRectangle,
  • Affine,
  • MapProjection,
  • PolarStereographicA,
  • CoordinateOperations,
  • ExtendedPrecisionMatrix,
  • Fallback,
  • Legacy,
  • ReferencingFactoryContainer
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now