Tabnine Logo
ValueSetter
Code IndexAdd Tabnine to your IDE (free)

How to use
ValueSetter
in
org.postgis.binary

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

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: net.postgis/postgis-jdbc

public void setInt(int value) {
  setInt(value, position);
  position += 4;
}
origin: net.postgis/postgis-jdbc

public void setLong(long value) {
  setLong(value, position);
  position += 8;
}
origin: net.postgis/postgis-jdbc

dest.setByte(dest.endian);
dest.setInt(typeword);
  dest.setInt(geom.srid);
origin: postgis/postgis-java

dest.setByte(dest.endian);
dest.setInt(typeword);
  dest.setInt(geom.srid);
origin: postgis/postgis-java

public void setInt(int value) {
  setInt(value, position);
  position += 4;
}
origin: orbisgis/h2gis

dest.setByte(dest.endian);
int plaintype = getWKBType(geom);
int typeword = plaintype;
dest.setInt(typeword);
if (haveSrid) {
  dest.setInt(geom.getSRID());
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: postgis/postgis-java

public void setLong(long value) {
  setLong(value, position);
  position += 8;
}
origin: net.postgis/postgis-jdbc

/**
 * Write an Array of "slim" Points (without endianness, srid and type, part
 * of LinearRing and Linestring, but not MultiPoint!
 */
private void writePointArray(Point[] geom, ValueSetter dest) {
  // number of points
  dest.setInt(geom.length);
  for (int i = 0; i < geom.length; i++) {
    writePoint(geom[i], dest);
  }
}
origin: postgis/postgis-java

dest.setByte(dest.endian);
dest.setInt(typeword);
  dest.setInt(geom.getSRID());
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: net.postgis/postgis-jdbc

/**
 * Set a double.
 *
 * @param data double value to be set with
 */
public void setDouble(double data) {
  long bitrep = Double.doubleToLongBits(data);
  setLong(bitrep);
}
origin: postgis/postgis-java

/**
 * Write an Array of "slim" Points (without endianness, srid and type, part
 * of LinearRing and Linestring, but not MultiPoint!
 */
private void writePointArray(Point[] geom, ValueSetter dest) {
  // number of points
  dest.setInt(geom.length);
  for (int i = 0; i < geom.length; i++) {
    writePoint(geom[i], dest);
  }
}
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));
    }
  }
}
origin: postgis/postgis-java

/**
 * Set a double.
 *
 * @param data double value to be set with
 */
public void setDouble(double data) {
  long bitrep = Double.doubleToLongBits(data);
  setLong(bitrep);
}
origin: net.postgis/postgis-jdbc

private void writeMultiLineString(MultiLineString geom, ValueSetter dest) {
  dest.setInt(geom.numLines());
  writeGeometryArray(geom.getLines(), dest);
}
origin: postgis/postgis-java

private void writeMultiPoint(MultiPoint geom, ValueSetter dest) {
  dest.setInt(geom.numPoints());
  writeGeometryArray(geom.getPoints(), dest);
}
origin: net.postgis/postgis-jdbc

private void writeCollection(GeometryCollection geom, ValueSetter dest) {
  dest.setInt(geom.numGeoms());
  writeGeometryArray(geom.getGeometries(), dest);
}
origin: net.postgis/postgis-jdbc

private void writeMultiPolygon(MultiPolygon geom, ValueSetter dest) {
  dest.setInt(geom.numPolygons());
  writeGeometryArray(geom.getPolygons(), dest);
}
org.postgis.binaryValueSetter

Most used methods

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JTable (javax.swing)
  • Top 25 Plugins for Webstorm
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