Codota Logo
ValueSetter.setDouble
Code IndexAdd Codota to your IDE (free)

How to use
setDouble
method
in
org.postgis.binary.ValueSetter

Best Java code snippets using org.postgis.binary.ValueSetter.setDouble (Showing top 4 results out of 315)

  • Common ways to obtain ValueSetter
private void myMethod () {
ValueSetter v =
  • Codota IconByteSetter data;new ValueSetter.XDR(data)
  • Codota IconByteSetter data;new ValueSetter.NDR(data)
  • Smart code suggestions by Codota
}
origin: net.postgis/postgis-jdbc

/**
 * Writes a "slim" Point (without endiannes, srid ant type, only the
 * ordinates and measure. Used by writeGeometry as ell as writePointArray.
 */
private void writePoint(Point geom, ValueSetter dest) {
  dest.setDouble(geom.x);
  dest.setDouble(geom.y);
  if (geom.dimension == 3) {
    dest.setDouble(geom.z);
  }
  if (geom.haveMeasure) {
    dest.setDouble(geom.m);
  }
}
origin: postgis/postgis-java

/**
 * Writes a "slim" Point (without endiannes, srid ant type, only the
 * ordinates and measure. Used by writeGeometry as ell as writePointArray.
 */
private void writePoint(Point geom, ValueSetter dest) {
  dest.setDouble(geom.x);
  dest.setDouble(geom.y);
  if (geom.dimension == 3) {
    dest.setDouble(geom.z);
  }
  if (geom.haveMeasure) {
    dest.setDouble(geom.m);
  }
}
origin: orbisgis/h2gis

private void writeCoordinates(CoordinateSequence seq, int dims, ValueSetter dest) {
  for(int i = 0; i < seq.size(); ++i) {
    for(int d = 0; d < dims; ++d) {
      dest.setDouble(seq.getOrdinate(i, d));
    }
  }
}
origin: postgis/postgis-java

/**
 * Write a CoordinateSequence, part of LinearRing and Linestring, but not
 * MultiPoint!
 */
private void writeCoordinates(CoordinateSequence seq, int dims, ValueSetter dest) {
  for (int i = 0; i < seq.size(); i++) {
    for (int d = 0; d < dims; d++) {
      dest.setDouble(seq.getOrdinate(i, d));
    }
  }
}
org.postgis.binaryValueSettersetDouble

Javadoc

Set a double.

Popular methods of ValueSetter

  • setByte
    Set a byte, should be equal for all endians
  • setInt
  • setLong

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JTextField (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
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