Examples of PointImpl


Examples of org.geotools.geometry.iso.primitive.PointImpl

  private Point readPointText() throws IOException, ParseException {
    String nextToken = getNextEmptyOrOpener();
    if (nextToken.equals(EMPTY)) {
      return null;
    }
    Point point = new PointImpl(positionFactory.createDirectPosition( this.getPreciseCoordinate().getCoordinates() )); //primitiveFactory.createPoint(this.getPreciseCoordinate().getCoordinates());
    getNextCloser();
    return point;
  }
View Full Code Here

Examples of org.geotools.geometry.iso.primitive.PointImpl

      // if no points, return null
      return null;
    }
    if (inputPts.length == 1) {
      // 1 point: return Point
      return new PointImpl( new DirectPositionImpl(crs, inputPts[0].getCoordinates()) ); //this.geomFactory.getPrimitiveFactory().createPoint(inputPts[0].getCoordinate());
    }
    if (inputPts.length == 2) {
      List<Position> positions = CoordinateArrays.toPositionList(this.crs, this.inputPts);
      LineStringImpl lineString = new LineStringImpl(new PointArrayImpl(positions), 0.0);
      List<CurveSegment> segments = new ArrayList<CurveSegment>();
View Full Code Here

Examples of org.geotools.geometry.jts.spatialschema.geometry.primitive.PointImpl

    /**
     * @inheritDoc
     * @see org.opengis.geometry.primitive.CurveSegment#getBoundary()
     */
    public CurveBoundary getBoundary() {
        return new CurveBoundaryImpl(null, new PointImpl(getStartPoint()), new PointImpl(getEndPoint()));
    }
View Full Code Here

Examples of org.geotools.geometry.jts.spatialschema.geometry.primitive.PointImpl

                            "primitive had wrong number of boundary points (" +
                            coords.length + ")");
                }
                CoordinateReferenceSystem crs = getCoordinateReferenceSystem();
                CurveBoundaryImpl result = new CurveBoundaryImpl(crs,
                        new PointImpl(JTSUtils.coordinateToDirectPosition(
                                coords[0], crs)),
                        new PointImpl(JTSUtils.coordinateToDirectPosition(
                                coords[1], crs)));
                return result;
            }
        }
        else if (d == 2) {
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.