Examples of project()


Examples of com.betfair.platform.virtualheap.Node.project()

    Node value = node.getField(key);

    if (value!=null) {

      return value.project(valueProjector).get();

    } else {

      return null;
View Full Code Here

Examples of com.esri.gpt.control.georss.GeometryService.project()

      Envelope envelope = new Envelope(e.getXMin(), e.getYMin(), e.getXMax(), e.getYMax());
      envelope.setWkid(e.getSpatialReference()!=null && e.getSpatialReference().getWKID()!=null? e.getSpatialReference().getWKID().toString(): "4326");
     
      GeometryService gs = GeometryService.createDefaultInstance();
      try {
        List<Envelope> envelopes = gs.project(Arrays.asList(new Envelope[]{envelope}), "4326");
        if (!envelopes.isEmpty()) {
          envelope = envelopes.get(0);
         
          StringBuilder thumbnailURL = new StringBuilder();
          thumbnailURL.append(serviceInfo.getSoapUrl());
View Full Code Here

Examples of com.hascode.tutorial.xbeam.projection.MavenPom.project()

import com.hascode.tutorial.xbeam.projection.MavenPom;

public class MavenPomParsing {
  public static void main(final String[] args) throws IOException {
    MavenPom pom = new XBProjector().io().fromURLAnnotation(MavenPom.class);
    System.out.println("Project: " + pom.project().artifactId() + ":" + pom.project().groupId() + ":" + pom.project().version());
    pom.dependencies().forEach(dep -> {
      System.out.println("-dependency -> " + dep.artifactId() + ":" + dep.groupId() + ":" + dep.version());
    });
    System.out.println("updating project version to 1.2.3..");
    pom.project().version("1.2.3");
View Full Code Here

Examples of com.jhlabs.map.proj.Projection.project()

        gl.glDisable(GL.GL_TEXTURE_2D);
        gl.glColor4d(0, 0, 0, 0.5);
        for (double lambda = pr.getMinLongitude(); lambda <= pr
                .getMaxLongitude(); lambda += step) {
            for (double phi = pr.getMinLatitude(); phi < pr.getMaxLatitude(); phi += step) {
                Point2D.Double ptn0 = pr.project(lambda, phi,
                        new Point2D.Double());
                Point2D.Double ptn1 = pr.project(lambda + MapMath.degToRad(10),
                        phi + step, new Point2D.Double());
                gl.glVertex2d(MapMath.radToDeg(ptn0.x), MapMath
                        .radToDeg(ptn0.y) / 2);
View Full Code Here

Examples of com.jhlabs.map.proj.Projection.project()

        for (double lambda = pr.getMinLongitude(); lambda <= pr
                .getMaxLongitude(); lambda += step) {
            for (double phi = pr.getMinLatitude(); phi < pr.getMaxLatitude(); phi += step) {
                Point2D.Double ptn0 = pr.project(lambda, phi,
                        new Point2D.Double());
                Point2D.Double ptn1 = pr.project(lambda + MapMath.degToRad(10),
                        phi + step, new Point2D.Double());
                gl.glVertex2d(MapMath.radToDeg(ptn0.x), MapMath
                        .radToDeg(ptn0.y) / 2);
                gl.glVertex2d(MapMath.radToDeg(ptn0.x), MapMath
                        .radToDeg(ptn1.y) / 2);
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineSegment.project()

     * @param encroachPt
     * @return
     */
    public static Coordinate projectedSplitPoint(Segment seg, Coordinate encroachPt) {
        LineSegment lineSeg = seg.getLineSegment();
        Coordinate projPt = lineSeg.project(encroachPt);
        return projPt;
    }
}
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineSegment.project()

     * @param encroachPt
     * @return a split point on the segment
     */
    public static Coordinate projectedSplitPoint(Segment seg, Coordinate encroachPt) {
        LineSegment lineSeg = seg.getLineSegment();
        Coordinate projPt = lineSeg.project(encroachPt);
        return projPt;
    }
}
View Full Code Here

Examples of com.vividsolutions.jts.linearref.LengthIndexedLine.project()

    return ll.extractLine(start, end);
  }
  public static Geometry project(Geometry g, Geometry g2)
  {
    LengthIndexedLine ll = new LengthIndexedLine(g);
    double index = ll.project(g2.getCoordinate());
    Coordinate p = ll.extractPoint(index);
    return g.getFactory().createPoint(p);
  }
  public static double projectIndex(Geometry g, Geometry g2)
  {
View Full Code Here

Examples of com.vividsolutions.jts.linearref.LocationIndexedLine.project()

              for(TripPatternStop patternStop : patternStops) {
               
               
                Point p = (Point) JTS.transform(patternStop.stop.locationPoint(), mt);
               
                LinearLocation l = indexLine.project(p.getCoordinate());
                patternStop.defaultDistance = LengthLocationMap.getLength(ls, l);
                patternStop.save();
              }
            }
           
View Full Code Here

Examples of com.vividsolutions.jts.linearref.LocationIndexedLine.project()

                LocationIndexedLine indexedRoute = new LocationIndexedLine(routeGeometry);

                // FIXME: it would be better to do this project/indexOfAfter in one step
                // as the two-step version could snap to a bad place and be unable to escape.

                LinearLocation routeProjectedEndIndex = indexedRoute.project(endCoord);
                Coordinate routeProjectedEndCoord = routeProjectedEndIndex
                        .getCoordinate(routeGeometry);

                if (routeProjectedEndIndex.compareTo(routeIndex) <= 0) {
                    try {
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.