Esempio n. 1
0
        private Document GetUpdatedDocument()
        {
            MultipleTrack multipleTrack = new MultipleTrack();

            multipleTrack.Id = "sean";

            Track track = new Track();

            track.Id = $"sean_t{trackNo}";
            foreach (KmlCameraParameterValues kmlCameraParameterValues in kmlCameraParameterValuesList.FindAll(e => e.seq > lastSeq))
            {
                track.AddCoordinate(
                    new Vector
                {
                    Altitude  = kmlCameraParameterValues.altitude,
                    Longitude = kmlCameraParameterValues.longitude,
                    Latitude  = kmlCameraParameterValues.latitude
                }
                    );
                track.AddAngle(
                    new Angle {
                    Heading = kmlCameraParameterValues.heading,
                    Pitch   = kmlCameraParameterValues.tilt,
                    Roll    = kmlCameraParameterValues.roll
                }
                    );
                lastSeq = kmlCameraParameterValues.seq;
            }
            multipleTrack.AddTrack(track);

            Placemark placemark = new Placemark();

            placemark.Geometry = multipleTrack;

            Document document = new Document();

            document.AddFeature(placemark);
            return(document);
        }