A computer-implemented method for ordering vertices in a stream of image frames encapsulating Earth-viewing data, the computer-implemented method comprising: a. receiving, in the stream of image frames, an image frame including four vertices (1, 2, 3, 4) of a terrestrial area, acquired by an optical sensor at an image plane of a remote sensing camera; b. assigning a provisional index to each of the four vertices, which provides four bounding lines (301, 302, 303, 304), each bounding line being a line passing through pairs of sequentially provisionally indexed vertices, wherein • the bounding line passing through the first and the second provisionally indexed vertex (1, 2) and the bounding line passing through the third and the fourth provisionally indexed vertex (3, 4) are defined as primary lines, and • the bounding line passing through the second and the third provisionally indexed vertex (2, 3) and the bounding line passing through the fourth and the first provisionally indexed vertex (1, 4) are defined as secondary lines; c. establishing a first point of intersection of the primary lines (301, 302); d. loading the first point of intersection into computer memory; e. interrogating the first point of intersection as to a sign of a signed remainder with respect to each of the secondary lines (303, 304); f. in the case of opposite remainder sign with respect to the secondary lines (303, 304), swapping a first and a second of the provisional indices to obtain a rectified index for each of the four vertices; g. establishing a second point of intersection of the secondary lines (303, 304); h. loading the second point of intersection into computer memory; i. interrogating the second point of intersection as to a sign of a signed remainder with respect to each of the primary lines (301, 302); j. in the case of opposite remainder sign with respect to the primary lines (301, 302), swapping a second and a third of the provisional indices to obtain a rectified index for each of the four vertices, and otherwise using the provisional index of each of the four vertices as the rectified index of each of the four vertices; and k. fitting the four vertices into a tiling of the surface of the Earth based on the rectified indices of each of the four vertices. a. receiving, in the stream of image frames, an image frame including four vertices (1, 2, 3, 4) of a terrestrial area, acquired by an optical sensor at an image plane of a remote sensing camera; b. assigning a provisional index to each of the four vertices, which provides four bounding lines (301, 302, 303, 304), each bounding line being a line passing through pairs of sequentially provisionally indexed vertices, wherein • the bounding line passing through the first and the second provisionally indexed vertex (1, 2) and the bounding line passing through the third and the fourth provisionally indexed vertex (3, 4) are defined as primary lines, and • the bounding line passing through the second and the third provisionally indexed vertex (2, 3) and the bounding line passing through the fourth and the first provisionally indexed vertex (1, 4) are defined as secondary lines; • the bounding line passing through the first and the second provisionally indexed vertex (1, 2) and the bounding line passing through the third and the fourth provisionally indexed vertex (3, 4) are defined as primary lines, and • the bounding line passing through the second and the third provisionally indexed vertex (2, 3) and the bounding line passing through the fourth and the first provisionally indexed vertex (1, 4) are defined as secondary lines; c. establishing a first point of intersection of the primary lines (301, 302); d. loading the first point of intersection into computer memory; e. interrogating the first point of intersection as to a sign of a signed remainder with respect to each of the secondary lines (303, 304); f. in the case of opposite remainder sign with respect to the secondary lines (303, 304), swapping a first and a second of the provisional indices to obtain a rectified index for each of the four vertices; g. establishing a second point of intersection of the secondary lines (303, 304); h. loading the second point of intersection into computer memory; i. interrogating the second point of intersection as to a sign of a signed remainder with respect to each of the primary lines (301, 302); j. in the case of opposite remainder sign with respect to the primary lines (301, 302), swapping a second and a third of the provisional indices to obtain a rectified index for each of the four vertices, and otherwise using the provisional index of each of the four vertices as the rectified index of each of the four vertices; and k. fitting the four vertices into a tiling of the surface of the Earth based on the rectified indices of each of the four vertices.