Package org.postgis

Examples of org.postgis.LineString


   * @param points
   *            The points making up the line.
   * @return The linestring.
   */
  public LineString createLinestring(List<Point> points) {
    LineString lineString;
   
    lineString = new LineString(points.toArray(new Point[]{}));
    lineString.srid = 4326;
   
    return lineString;
  }
View Full Code Here


   * @param points
   *            The points making up the line.
   * @return The linestring.
   */
  public LineString createLinestring(List<Point> points) {
    LineString lineString;
   
    lineString = new LineString(points.toArray(new Point[]{}));
    lineString.srid = 4326;
   
    return lineString;
  }
View Full Code Here

        return new MultiPoint(points);
    }

    private LineString parseLineString(ValueGetter data, boolean haveZ, boolean haveM) {
        Point[] points = parsePointArray(data, haveZ, haveM);
        return new LineString(points);
    }
View Full Code Here

        System.out.println();

        System.out.println("LineString Test:");
        System.out.println("\t" + lng_str);
        LineString lng = new LineString(lng_str);
        System.out.println("\t" + lng.toString());

        System.out.println();

        System.out.println("Polygon Test:");
        System.out.println("\t" + plg_str);
View Full Code Here

TOP

Related Classes of org.postgis.LineString

Copyright © 2018 www.massapicom. 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.