Codota Logo
WKTUtilities.append
Code IndexAdd Codota to your IDE (free)

How to use
append
method
in
org.apache.sis.internal.referencing.WKTUtilities

Best Java code snippets using org.apache.sis.internal.referencing.WKTUtilities.append (Showing top 10 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

/**
 * Appends a {@linkplain ParameterValueGroup group of parameters} in a {@code Param_MT[…]} element.
 *
 * @param  parameters  the parameter to append to the WKT, or {@code null} if none.
 * @param  formatter   the formatter where to append the parameter.
 */
public static void appendParamMT(final ParameterValueGroup parameters, final Formatter formatter) {
  if (parameters != null) {
    appendName(parameters.getDescriptor(), formatter, ElementKind.PARAMETER);
    append(parameters, formatter);
  }
}
origin: org.apache.sis.core/sis-referencing

/**
 * Appends a {@linkplain ParameterValue parameter} in a {@code PARAMETER[…]} element.
 * If the supplied parameter is actually a {@linkplain ParameterValueGroup parameter group},
 * all contained parameters will be flattened in a single list.
 *
 * @param  parameter  the parameter to append to the WKT, or {@code null} if none.
 * @param  formatter  the formatter where to append the parameter.
 */
public static void append(GeneralParameterValue parameter, final Formatter formatter) {
  if (parameter instanceof ParameterValueGroup) {
    boolean first = true;
    for (final GeneralParameterValue param : ((ParameterValueGroup) parameter).values()) {
      if (first) {
        formatter.newLine();
        first = false;
      }
      append(param, formatter);
    }
  }
  if (parameter instanceof ParameterValue<?>) {
    if (!(parameter instanceof FormattableObject)) {
      parameter = new DefaultParameterValue<>((ParameterValue<?>) parameter);
    }
    formatter.append((FormattableObject) parameter);
    formatter.newLine();
  }
}
origin: apache/sis

/**
 * Appends a {@linkplain ParameterValueGroup group of parameters} in a {@code Param_MT[…]} element.
 *
 * @param  parameters  the parameter to append to the WKT, or {@code null} if none.
 * @param  formatter   the formatter where to append the parameter.
 */
public static void appendParamMT(final ParameterValueGroup parameters, final Formatter formatter) {
  if (parameters != null) {
    appendName(parameters.getDescriptor(), formatter, ElementKind.PARAMETER);
    append(parameters, formatter);
  }
}
origin: apache/sis

/**
 * Appends a {@linkplain ParameterValue parameter} in a {@code PARAMETER[…]} element.
 * If the supplied parameter is actually a {@linkplain ParameterValueGroup parameter group},
 * all contained parameters will be flattened in a single list.
 *
 * @param  parameter  the parameter to append to the WKT, or {@code null} if none.
 * @param  formatter  the formatter where to append the parameter.
 */
public static void append(GeneralParameterValue parameter, final Formatter formatter) {
  if (parameter instanceof ParameterValueGroup) {
    boolean first = true;
    for (final GeneralParameterValue param : ((ParameterValueGroup) parameter).values()) {
      if (first) {
        formatter.newLine();
        first = false;
      }
      append(param, formatter);
    }
  }
  if (parameter instanceof ParameterValue<?>) {
    if (!(parameter instanceof FormattableObject)) {
      parameter = new DefaultParameterValue<>((ParameterValue<?>) parameter);
    }
    formatter.append((FormattableObject) parameter);
    formatter.newLine();
  }
}
origin: org.apache.sis.core/sis-referencing

  @Override protected String formatTo(final Formatter formatter) {
    WKTUtilities.appendName(conversion, formatter, null);
    formatter.newLine();
    formatter.append(DefaultOperationMethod.castOrCopy(conversion.getMethod()));
    formatter.newLine();
    for (final GeneralParameterValue param : conversion.getParameterValues().values()) {
      WKTUtilities.append(param, formatter);
    }
    return WKTKeywords.DerivingConversion;
  }
});
origin: org.apache.sis.core/sis-referencing

WKTUtilities.append(param, formatter);
origin: apache/sis

  @Override protected String formatTo(final Formatter formatter) {
    WKTUtilities.appendName(conversion, formatter, null);
    formatter.newLine();
    formatter.append(DefaultOperationMethod.castOrCopy(conversion.getMethod()));
    formatter.newLine();
    for (final GeneralParameterValue param : conversion.getParameterValues().values()) {
      WKTUtilities.append(param, formatter);
    }
    return WKTKeywords.DerivingConversion;
  }
});
origin: apache/sis

WKTUtilities.append(param, formatter);
origin: apache/sis

for (final GeneralParameterValue param : parameters.values()) {
  if (!filter || WKTUtilities.isEPSG(param.getDescriptor(), true)) {
    WKTUtilities.append(param, formatter);
origin: org.apache.sis.core/sis-referencing

for (final GeneralParameterValue param : parameters.values()) {
  if (!filter || WKTUtilities.isEPSG(param.getDescriptor(), true)) {
    WKTUtilities.append(param, formatter);
org.apache.sis.internal.referencingWKTUtilitiesappend

Javadoc

Appends a ParameterValue in a PARAMETER[…] element. If the supplied parameter is actually a ParameterValueGroup, all contained parameters will be flattened in a single list.

Popular methods of WKTUtilities

  • appendName
    Appends the name of the given object to the formatter.
  • appendParamMT
    Appends a ParameterValueGroup in a Param_MT[…] element.
  • suggestFractionDigits
    Suggests an amount of fraction digits to use for formatting numbers in each column of the given sequ
  • toType
    Returns the WKT type of the given interface. For CoordinateSystem base type, the returned value shal
  • isEPSG
    Returns true if the given parameter is defined in the EPSG code space. We handle EPSG parameters in
  • toFormattable
    Returns the given prime meridian as a formattable object.

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • JFrame (javax.swing)
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