Examples of reprojectFromSumo()


Examples of de.hpi.eworld.util.Projection.reprojectFromSumo()

      org.w3c.dom.Node curNode = junctions.item(i);
      double lat = Double.parseDouble(curNode.getAttributes().getNamedItem("x").getTextContent());
      double lon = Double.parseDouble(curNode.getAttributes().getNamedItem("y").getTextContent());

      Projection p = ProjectionFactory.getInstance().getProjection();
      double[] reprojected = p.reprojectFromSumo(lon, lat);

      String id = curNode.getAttributes().getNamedItem("id").getTextContent();
      NodeModel newNode = new NodeModel(reprojected[0], reprojected[1]);

      this.nodes.put(id, newNode);
View Full Code Here

Examples of de.hpi.eworld.util.Projection.reprojectFromSumo()

      Double lat = Double.parseDouble(attr.getValue("x"));
      Double lon = Double.parseDouble(attr.getValue("y"));

      Projection p = ProjectionFactory.getInstance().getProjection();
      double[] reprojected = p.reprojectFromSumo(lon, lat);

      MyNode newNode = new MyNode();
      newNode.lat = reprojected[0];
      newNode.lon = reprojected[1];
      nodes.put(nodeID, newNode);
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.