Examples of createLineString()


Examples of org.geomajas.gwt.client.spatial.geometry.GeometryFactory.createLineString()

  // Constructor
  // -------------------------------------------------------------------------

  public InsertCoordinateTest() {
    GeometryFactory factory = new GeometryFactory(SRID, PRECISION);
    lineString = factory.createLineString(new Coordinate[] {new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0)});
    multiLineString = factory.createMultiLineString(new LineString[] {(LineString) lineString.clone()});

    LinearRing exteriorRing = factory.createLinearRing(new Coordinate[] {new Coordinate(0.0, 0.0),
        new Coordinate(100.0, 0.0), new Coordinate(100.0, 100.0), new Coordinate(0.0, 100.0)});
View Full Code Here

Examples of org.geotools.geometry.iso.coordinate.GeometryFactoryImpl.createLineString()

      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{80, 30})));
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{50, 20})));
     
      /* Setting up Array of these LineStrings */
      ArrayList<CurveSegment> tLineList1 = new ArrayList<CurveSegment>();
      tLineList1.add(tCoordFactory.createLineString(line1));
      tLineList1.add(tCoordFactory.createLineString(line2));

      ArrayList<CurveSegment> tLineList2 = new ArrayList<CurveSegment>();
      tLineList2.add(tCoordFactory.createLineString(line3));
      tLineList2.add(tCoordFactory.createLineString(line4));
View Full Code Here

Examples of org.geotools.geometry.jts.CurvedGeometryFactory.createLineString()

    public void testEncodeCompound() throws Exception {
        // create a compound curve
        CurvedGeometryFactory factory = new CurvedGeometryFactory(0.1);
        LineString curve = factory.createCurvedGeometry(new LiteCoordinateSequence(1, 1, 2, 2, 3,
                1, 5, 5, 7, 3));
        LineString straight = factory.createLineString(new LiteCoordinateSequence(7, 3, 10, 15));
        LineString compound = factory.createCurvedGeometry(curve, straight);

        // encode
        Document dom = encode(compound, GML.curveProperty);
        // print(dom);
View Full Code Here

Examples of org.opengis.geometry.coordinate.GeometryFactory.createLineString()

        GeometryFactory geometryFactory = builder.getGeometryFactory();
        CoordinateReferenceSystem crs = builder.getCoordinateReferenceSystem();
       
        int length = array.length / crs.getCoordinateSystem().getDimension();
        PointArray closedPoints = postitionFactory.createPointArray( array, 0, length );
        LineString lines = geometryFactory.createLineString(closedPoints);       
        List<CurveSegment> segmentList = new ArrayList<CurveSegment>();
        segmentList.add(lines);
       
        Curve curve = primitiveFactory.createCurve(segmentList);
       
View Full Code Here

Examples of slash.navigation.kml.binding22.ObjectFactory.createLineString()

        placemarkType.setDescription(asDescription(route.getDescription()));
        placemarkType.setStyleUrl("#" + ROUTE_LINE_STYLE);
        MultiGeometryType multiGeometryType = objectFactory.createMultiGeometryType();
        placemarkType.setAbstractGeometryGroup(objectFactory.createMultiGeometry(multiGeometryType));
        LineStringType lineStringType = objectFactory.createLineStringType();
        multiGeometryType.getAbstractGeometryGroup().add(objectFactory.createLineString(lineStringType));
        List<String> coordinates = lineStringType.getCoordinates();
        for (KmlPosition position : route.getPositions()) {
            coordinates.add(createCoordinates(position, false));
        }
        return placemarkType;
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.