Examples of PGgeometry


Examples of org.postgis.PGgeometry

   * {@inheritDoc}
   */
  @Override
  public Node parseRecord(ResultSet resultSet) {
    try {
      PGgeometry geom;
      Point point;
     
      geom = (PGgeometry) resultSet.getObject("geom");
      point = (Point) geom.getGeometry();
     
      return new Node(
        new CommonEntityData(
          resultSet.getLong("id"),
          resultSet.getInt("version"),
View Full Code Here

Examples of org.postgis.PGgeometry

   
    try {
      // Set the node level parameters.
      statement.setObject(
          prmIndex++,
          new PGgeometry(pointBuilder.createPoint(node.getLatitude(), node.getLongitude())));
     
    } catch (SQLException e) {
      throw new OsmosisRuntimeException(
          "Unable to set a prepared statement parameter for node " + node.getId() + ".", e);
    }
View Full Code Here

Examples of org.postgis.PGgeometry

   */
  @Override
  public void populateEntityParameters(Map<String, Object> args, Node entity) {
    populateCommonEntityParameters(args, entity);
   
    args.put("geom", new PGgeometry(pointBuilder.createPoint(entity.getLatitude(), entity.getLongitude())));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.