Package slash.navigation.base

Examples of slash.navigation.base.Wgs84Route


        return false;
    }

    @SuppressWarnings("unchecked")
    public <P extends NavigationPosition> Wgs84Route createRoute(RouteCharacteristics characteristics, String name, List<P> positions) {
        Wgs84Route newRoute = new Wgs84Route(this, characteristics, (List<Wgs84Position>) positions);
        newRoute.setName(name);
        return newRoute;
    }
View Full Code Here


        byte[] header = new byte[HEADER_SIZE];
        if ((source.read(header) == HEADER_SIZE) && checkHeader(header)) {
            ByteBuffer sbpRecordByteBuffer = ByteBuffer.allocate(SBP_RECORD_LENGTH);
            sbpRecordByteBuffer.order(ByteOrder.LITTLE_ENDIAN);

            Wgs84Route activeRoute = null;
            byte[] record = new byte[SBP_RECORD_LENGTH];
            while (source.read(record) == SBP_RECORD_LENGTH) {
                sbpRecordByteBuffer.position(0);
                sbpRecordByteBuffer.put(record);

                Wgs84Position position = decodePosition(sbpRecordByteBuffer);
                if ((activeRoute == null) || (isTrackStart(sbpRecordByteBuffer))) {
                    activeRoute = createRoute(Track,
                            createDateFormat(TRACK_NAME_DATE_FORMAT).format(position.getTime().getTime()),
                            new ArrayList<BaseNavigationPosition>());
                    context.appendRoute(activeRoute);
                }

                activeRoute.getPositions().add(position);
            }
        }
    }
View Full Code Here

    protected SimpleRoute asSimpleFormat(SimpleFormat format) {
        List<Wgs84Position> wgs84Positions = new ArrayList<Wgs84Position>();
        for (KmlPosition kmlPosition : positions) {
            wgs84Positions.add(kmlPosition.asWgs84Position());
        }
        return new Wgs84Route(format, getCharacteristics(), wgs84Positions);
    }
View Full Code Here

    protected SimpleRoute asSimpleFormat(SimpleFormat format) {
        List<Wgs84Position> gopalPositions = new ArrayList<Wgs84Position>();
        for (GoPalPosition position : positions) {
            gopalPositions.add(position.asWgs84Position());
        }
        return new Wgs84Route(format, getCharacteristics(), gopalPositions);
    }
View Full Code Here

    protected SimpleRoute asSimpleFormat(SimpleFormat format) {
        List<Wgs84Position> wgs84Positions = new ArrayList<Wgs84Position>();
        for (Wgs84Position wgs84Position : positions) {
            wgs84Positions.add(wgs84Position.asWgs84Position());
        }
        return new Wgs84Route(format, getCharacteristics(), wgs84Positions);
    }
View Full Code Here

TOP

Related Classes of slash.navigation.base.Wgs84Route

Copyright © 2018 www.massapicom. 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.