|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Draft
@UML(identifier="GM_Permutation",
specification=ISO_19107)
public interface Permutation
Represents the rearrangement of a list, or a projection. The main usage of this interface is
to determine the differences in the order in which a CoordinateSystem axes are defined
and the order in which they are used in a DirectPosition.
Note: This is helpful, because forcing the coordinate reference system to be in theCoordinateSystemas the first coordinate offsets will often force the system to be left handed. Using a odd-permutation on the spatial offsets will flip this to a right handed system, and allow graphics-based or engineering-based software to deal with coordinate as stored in theDirectPositionwithout the worry of mirror images, which is the result of getting the handedness of a coordinate system wrong. The usual permutation with simply flip the first and second offset.
| Method Summary | |
|---|---|
int[] |
getNewOrder()
describes the new ordering of offsets in terms of offset indexes of the original ordering. |
boolean |
isEven()
Determines whether the permutation is representable as an even or odd number of transposition (2 element swaps). |
| Method Detail |
|---|
@Draft
@UML(identifier="newOrder",
obligation=MANDATORY,
specification=ISO_19107)
int[] getNewOrder()
Note: Because of its definition, thenewOrderarray will normally be a rearrangement of the integer between 0 and n-1 where n is the dimension of theCoordinateSystemin which the permutation appears. Since the most common issue is that the use of “lat-long” is left handed, the most common new order will be (1, 0) which simply flips the order of the latitude and longitude offsets of a geographic coordinate system.
DirectPosition.
@Draft
@UML(identifier="isEven",
obligation=MANDATORY,
specification=ISO_19107)
boolean isEven()
Note:
Under usual circumstances, the only reason to use a permutation is to change
a spatial coordinate reference system
from left handed to right handedness. A null permutation is even,
and the usual (1, 0) swap is odd (1 transposition).
true if permutation is even, or false if odd.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||