Examples of createPoint()


Examples of org.eclipse.graphiti.services.IGaService.createPoint()

                if (graphicsAlgorithm instanceof Polyline) {

                    Polyline polyline = (Polyline) graphicsAlgorithm;
                    Point secondPoint = polyline.getPoints().get(1);
                    Point newSecondPoint =
                        gaService.createPoint(containerWidth,
                            secondPoint.getY());
                    polyline.getPoints().set(1, newSecondPoint);
                    anythingChanged = true;

                } else if (graphicsAlgorithm instanceof Rectangle){
View Full Code Here

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

    final GfxGeometry worldGeometry2 = new GfxGeometry("MultiPointInWorldSpace");
    SymbolInfo si = new SymbolInfo();
    CircleInfo ci = new CircleInfo();
    ci.setR(8.0f);
    si.setCircle(ci);
    Point pt1 = gf.createPoint(new Coordinate(6000000, -5000000));
    Point pt2 = gf.createPoint(new Coordinate(8000000, -5000000));
    Point pt3 = gf.createPoint(new Coordinate(7000000, -7000000));
    worldGeometry2.setStyle(new ShapeStyle("#0000FF", 0.3f, "#0000FF", 1.0f, 2));
    worldGeometry2.setGeometry(gf.createMultiPoint(new Point[] {pt1, pt2, pt3}));
    worldGeometry2.setSymbolInfo(si);
View Full Code Here

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

    SymbolInfo si = new SymbolInfo();
    CircleInfo ci = new CircleInfo();
    ci.setR(8.0f);
    si.setCircle(ci);
    Point pt1 = gf.createPoint(new Coordinate(6000000, -5000000));
    Point pt2 = gf.createPoint(new Coordinate(8000000, -5000000));
    Point pt3 = gf.createPoint(new Coordinate(7000000, -7000000));
    worldGeometry2.setStyle(new ShapeStyle("#0000FF", 0.3f, "#0000FF", 1.0f, 2));
    worldGeometry2.setGeometry(gf.createMultiPoint(new Point[] {pt1, pt2, pt3}));
    worldGeometry2.setSymbolInfo(si);
View Full Code Here

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

    CircleInfo ci = new CircleInfo();
    ci.setR(8.0f);
    si.setCircle(ci);
    Point pt1 = gf.createPoint(new Coordinate(6000000, -5000000));
    Point pt2 = gf.createPoint(new Coordinate(8000000, -5000000));
    Point pt3 = gf.createPoint(new Coordinate(7000000, -7000000));
    worldGeometry2.setStyle(new ShapeStyle("#0000FF", 0.3f, "#0000FF", 1.0f, 2));
    worldGeometry2.setGeometry(gf.createMultiPoint(new Point[] {pt1, pt2, pt3}));
    worldGeometry2.setSymbolInfo(si);

    button2.addClickHandler(new ClickHandler() {
View Full Code Here

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

    GeometryFactory factory = new GeometryFactory(geometry.getSrid(), geometry.getPrecision());
    org.geomajas.gwt.client.spatial.geometry.Geometry gwt = null;

    String geometryType = geometry.getGeometryType();
    if (Geometry.POINT.equals(geometryType)) {
      gwt = factory.createPoint(geometry.getCoordinates()[0]);
    } else if (Geometry.LINEAR_RING.equals(geometryType)) {
      gwt = factory.createLinearRing(geometry.getCoordinates());
    } else if (Geometry.LINE_STRING.equals(geometryType)) {
      gwt = factory.createLineString(geometry.getCoordinates());
    } else if (Geometry.POLYGON.equals(geometryType)) {
View Full Code Here

Examples of org.geotools.geometry.GeometryBuilder.createPoint()

      return ff.or(filters);
  }
 
  private static Filter getDistanceFilter(String propertyName, Coordinate coordinate, CoordinateReferenceSystem crs, FilterFactory2 ff) throws FactoryException {
    GeometryBuilder builder = new GeometryBuilder(crs);
    org.opengis.geometry.primitive.Point point = builder.createPoint(coordinate.x, coordinate.y, coordinate.z);
    Unit<?> unit_str = CRSUtilities.getUnit(crs.getCoordinateSystem());
    double unit = 0.00001;
    if(unit_str.getStandardUnit().isCompatible(SI.METER)) {
      unit = 1.11;
    }
View Full Code Here

Examples of org.geotools.geometry.iso.primitive.PrimitiveFactoryImpl.createPoint()

  public void testPoint() throws Exception {

    PositionFactory positionFactory = new PositionFactoryImpl(crs1, new PrecisionModel());
    PrimitiveFactory primitiveFactory = new PrimitiveFactoryImpl(crs1, positionFactory);
   
    PointImpl point1 = (PointImpl) primitiveFactory.createPoint( new double[]{-123.47009555832284, 48.543261561072285} );
    PointImpl point2 = (PointImpl) point1.transform(crs2);
   
    // create expected result
    PositionFactory expectedPosF2 = new PositionFactoryImpl(crs2, new PrecisionModel());
    PrimitiveFactory expectedPrimF2 = new PrimitiveFactoryImpl(crs2, expectedPosF2);
View Full Code Here

Examples of org.opengis.geometry.primitive.PrimitiveFactory.createPoint()

    // public PointImpl createPoint(double[] coord);
    double[] da = new double[3];
    da[0] = 10.0;
    da[1] = -115000.0;
    da[2] = 0.0000000125;
    Point p1 = pf.createPoint(da);
    assertTrue(p1.getDirectPosition().getOrdinate(0) == 10.0);
    assertTrue(p1.getDirectPosition().getOrdinate(1) == -115000.0);
    assertTrue(p1.getDirectPosition().getOrdinate(2) == 0.0000000125);

    // public PointImpl createPoint(Position position);
View Full Code Here

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

                TimeStampType timeStampType = objectFactory.createTimeStampType();
                timeStampType.setWhen(formatDate(position.getTime()));
                placemarkType.setAbstractTimePrimitiveGroup(objectFactory.createTimeStamp(timeStampType));
            }
            PointType pointType = objectFactory.createPointType();
            placemarkType.setAbstractGeometryGroup(objectFactory.createPoint(pointType));
            pointType.getCoordinates().add(createCoordinates(position, false));
        }
        return folderType;
    }
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.