Package slash.navigation.base

Examples of slash.navigation.base.Wgs84Route


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


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

        return "Qstarz BT-Q1000 (*" + getExtension() + ")";
    }

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

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

        return "groundtrack vom SondenMonitor (*" + getExtension() + ")";
    }

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

        return "Kompass (*" + getExtension() + ")";
    }

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

        byte[] record = new byte[SBP_RECORD_LENGTH];
        ByteBuffer sbpRecordByteBuffer = ByteBuffer.wrap(record);
        sbpRecordByteBuffer.order(ByteOrder.LITTLE_ENDIAN);

        List<Wgs84Route> result = new ArrayList<Wgs84Route>();
        Wgs84Route activeRoute = null;
        Wgs84Position position;
        Wgs84Position previousPosition = null;
        int readBytes = 0, pointCount = 0;
        while (source.read(record) == SBP_RECORD_LENGTH) {
            readBytes += SBP_RECORD_LENGTH;
            do {
                sbpRecordByteBuffer.position(0);
                position = decodePosition(sbpRecordByteBuffer);
                if (!isValidPosition(position, previousPosition)) {
                    position = null;
                    int count = readOneByteFromInput(source, record);
                    readBytes += count;
                    if (count != 1) {
                        break;
                    }
                    // the first position must inside the first 40 bytes
                    if (pointCount == 0 && readBytes > 40)
                        break;
                }
            } while (position == null);

            // at least three positions in the first 100 bytes
            if (readBytes > 100 && pointCount < 3)
                return;

            if ((activeRoute == null || isTrackStart(sbpRecordByteBuffer)) && position != null) {
                activeRoute = createRoute(Track,
                        createDateFormat(TRACK_NAME_DATE_FORMAT).format(position.getTime().getTime()),
                        new ArrayList<BaseNavigationPosition>());
                result.add(activeRoute);
            }

            if (position != null && activeRoute != null)
                activeRoute.getPositions().add(position);
            else {
                context.appendRoutes(result);
                return;
            }
View Full Code Here

        return false;
    }

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

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

        return ".txt";
    }

    @SuppressWarnings("unchecked")
    public <P extends NavigationPosition> SimpleRoute createRoute(RouteCharacteristics characteristics, String name, List<P> positions) {
        return new Wgs84Route(this, characteristics, (List<Wgs84Position>) positions);
    }
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.