1   /* Copyright 2013-2019 CS Systèmes d'Information
2    * Licensed to CS Systèmes d'Information (CS) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * CS licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *   http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.orekit.rugged.raster;
18  
19  /** Interface representing one tile of a raster Digital Elevation Model.
20   * @author Luc Maisonobe
21   * @author Guylaine Prat
22   */
23  public interface UpdatableTile {
24  
25      /** Set the tile global geometry.
26       * @param minLatitude minimum latitude (rad)
27       * @param minLongitude minimum longitude (rad)
28       * @param latitudeStep step in latitude (size of one raster element) (rad)
29       * @param longitudeStep step in longitude (size of one raster element) (rad)
30       * @param latitudeRows number of latitude rows
31       * @param longitudeColumns number of longitude columns
32       */
33      void setGeometry(double minLatitude, double minLongitude,
34                       double latitudeStep, double longitudeStep,
35                       int latitudeRows, int longitudeColumns);
36  
37      /** Set the elevation for one raster element.
38       * <p>
39       * BEWARE! The order of the indices follows geodetic conventions, i.e.
40       * the latitude is given first and longitude afterwards, so the first
41       * index specifies a <em>row</em> index with zero at South and max value
42       * at North, and the second index specifies a <em>column</em> index
43       * with zero at West and max value at East. This is <em>not</em> the
44       * same as some raster conventions (as our row index increases from South
45       * to North) and this is also not the same as Cartesian coordinates as
46       * our ordinate index appears before our abscissa index).
47       * </p>
48       * @param latitudeIndex index of latitude (row index)
49       * @param longitudeIndex index of longitude (column index)
50       * @param elevation elevation (m)
51       */
52      void setElevation(int latitudeIndex, int longitudeIndex, double elevation);
53  
54  }