use of org.onebusaway.geospatial.services.UTMProjection in project onebusaway-application-modules by camsys.
the class ProjectedPointFactory method reverse.
public static ProjectedPoint reverse(double x, double y, int srid) {
UTMProjection projection = new UTMProjection(srid);
XYPoint p = new XYPoint(x, y);
CoordinatePoint latlon = projection.reverse(p);
return new ProjectedPoint(latlon.getLat(), latlon.getLon(), x, y, srid);
}
use of org.onebusaway.geospatial.services.UTMProjection in project onebusaway-application-modules by camsys.
the class GtfsComputePolylineBoundaryForStopsMain method handleOutputAsText.
private void handleOutputAsText(PrintWriter out, StopToPolygonEntityHandler handler) {
Geometry geometry = handler.getGeometry();
UTMProjection proj = handler.getProjection();
out.println("polygon");
AtomicInteger index = new AtomicInteger();
printGeometry(out, geometry, proj, index, true);
out.println("END");
}
Aggregations