Examples of UTMPoint


Examples of navi.osm.Coordinates.UTMPoint

    @Override
    public void startElement(String namespaceURI, String localname, String tagname, Attributes attributes) throws SAXException {

        if (Bounds == null)
            Bounds = new UTMPoint(0, 0, 0);

        if (tagname.equals("node")) {

            bNode = true;

            int id = Integer.parseInt(attributes.getValue("id"));
            UTMPoint GPSPoint = convert(Double.parseDouble(attributes.getValue("lat")), Double.parseDouble(attributes.getValue("lon")));
            nd_obj = new Knoten(id, new Point2D.Double(GPSPoint.getX() - Bounds.getX(), -1 * (GPSPoint.getY() - Bounds.getY())));
            vertices.add(nd_obj);

        } else if (tagname.equals("tag")) {

            if (bNode) {
View Full Code Here

Examples of navi.osm.Coordinates.UTMPoint

    }

    private UTMPoint convert(double latitude, double longitude) {
        WGS84Point wgs = new WGS84Point();
        wgs.SetDegrees(latitude, longitude);
        UTMPoint GPSPoint = new UTMPoint();
        Coordinates.convertWGS84toUTM(wgs, GPSPoint);

        return GPSPoint;
    }
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.