Skip to content
Snippets Groups Projects
Commit 146c1403 authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Documented the fact latitude/longitudes are at pixels *centers*.

parent 06c5ed0a
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,12 @@ import org.orekit.bodies.GeodeticPoint;
import org.orekit.rugged.api.RuggedException;
/** Interface representing a raster tile.
* <p>
* The elevations are considered to be at the <em>center</em> of each pixels.
* The minimum latitude and longitude hence correspond to the <em>center</em>
* of the most South-West pixel, and the maximum latitude and longitude
* correspond to the <em>center</em> of the most North-East pixel.
* </p>
* @author Luc Maisonobe
*/
public interface Tile extends UpdatableTile {
......@@ -65,33 +71,39 @@ public interface Tile extends UpdatableTile {
/** Get minimum latitude.
* @return minimum latitude
* (latitude of the center of the pixels of South row)
*/
double getMinimumLatitude();
/** Get the latitude at some index.
* @param latitudeIndex latitude index
* @return latitude at the specified index
* (latitude of the center of the pixels of specified row)
*/
double getLatitudeAtIndex(int latitudeIndex);
/** Get maximum latitude.
* @return maximum latitude
* (latitude of the center of the pixels of North row)
*/
double getMaximumLatitude();
/** Get minimum longitude.
* @return minimum longitude
* (longitude of the center of the pixels of West column)
*/
double getMinimumLongitude();
/** Get the longitude at some index.
* @param longitudeIndex longitude index
* @return longitude at the specified index
* (longitude of the center of the pixels of specified column)
*/
double getLongitudeAtIndex(int longitudeIndex);
/** Get maximum longitude.
* @return maximum longitude
* (longitude of the center of the pixels of East column)
*/
double getMaximumLongitude();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment