Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rugged
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Orekit
Rugged
Commits
c0a282db
Commit
c0a282db
authored
10 years ago
by
Luc Maisonobe
Browse files
Options
Downloads
Patches
Plain Diff
Further clarifications.
parent
a5509578
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/src/main/java/org/orekit/rugged/raster/TileUpdater.java
+13
-13
13 additions, 13 deletions
core/src/main/java/org/orekit/rugged/raster/TileUpdater.java
core/src/main/java/org/orekit/rugged/raster/UpdatableTile.java
+10
-0
10 additions, 0 deletions
...src/main/java/org/orekit/rugged/raster/UpdatableTile.java
with
23 additions
and
13 deletions
core/src/main/java/org/orekit/rugged/raster/TileUpdater.java
+
13
−
13
View file @
c0a282db
...
...
@@ -53,23 +53,23 @@ public interface TileUpdater {
* </li>
* <li>
* As elevations are interpolated within Digital Elevation Model
* pixels using four pixels at indices (
i, j), (i+1, j), (i, j+1)
* (
i
+1,
j
+1). A point in the northernmost row
(resp. easternmost
* column) miss neighboring points at row
j+1 (resp. neighboring
* points at column
i
+1) and therefore cannot
be interpolated.
* The method should therefore select the northernmost
tile if the
* specified latitude is in the overlapping row between two
tiles,
* and it should select the easternmost tile if the specified
longitude
* is in the overlapping column between two tiles. Failing
to do so will
* trigger an error at caller level mentioning the missing
required
* neighbors.
* pixels using four pixels at indices (
kLat, kLon), (kLat+1, kLon),
* (
kLat, kLon
+1
)
,
(kLat+1, kLon
+1). A point in the northernmost row
*
(resp. easternmost
column) miss neighboring points at row
kLat+1
*
(resp. neighboring
points at column
kLon
+1) and therefore cannot
*
be interpolated.
The method should therefore select the northernmost
*
tile if the
specified latitude is in the overlapping row between two
*
tiles,
and it should select the easternmost tile if the specified
*
longitude
is in the overlapping column between two tiles. Failing
*
to do so will
trigger an error at caller level mentioning the missing
*
required
neighbors.
* </li>
* <li>
* The elevation at grid point as set when calling {@link
* UpdatableTile#setElevation(int, int, double) tile.setElevation(
i, j
,
* UpdatableTile#setElevation(int, int, double) tile.setElevation(
kLat, kLon
,
* elevation)} must be the elevation corresponding to the latitude
* {@code minLatitude +
i
* latitudeStep} and longitude {@code
* minLongitude +
j
* longitudeStep}, where {@code minLatitude},
* {@code minLatitude +
kLat
* latitudeStep} and longitude {@code
* minLongitude +
kLon
* longitudeStep}, where {@code minLatitude},
* {@code latitudeStep}, {@code minLongitude} and {@code longitudeStep}
* correspond to the parameter of the {@link UpdatableTile#setGeometry(double,
* double, double, double, int, int) tile.setGeometry(minLatitude, minLongitude,
...
...
This diff is collapsed.
Click to expand it.
core/src/main/java/org/orekit/rugged/raster/UpdatableTile.java
+
10
−
0
View file @
c0a282db
...
...
@@ -38,6 +38,16 @@ public interface UpdatableTile {
throws
RuggedException
;
/** Set the elevation for one raster element.
* <p>
* BEWARE! The order of the indices follows geodetic conventions, i.e.
* the latitude is given first and longitude afterwards, so the first
* index specifies a <em>row</em> index with zero at South and max value
* at North, and the second index specifies a <em>column</em> index
* with zero at West and max value at East. This is <em>not</em> the
* same as some raster conventions (as our row index increases from South
* to North) and this is also not the same as Cartesian coordinates as
* our ordinate index appears before our abscissa index).
* </p>
* @param latitudeIndex index of latitude (row index)
* @param longitudeIndex index of longitude (column index)
* @param elevation elevation (m)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment