Package elki.data.projection
Class LatLngToECEFProjection<V extends NumberVector>
- java.lang.Object
-
- elki.data.projection.LatLngToECEFProjection<V>
-
- Type Parameters:
V
- Vector type
- All Implemented Interfaces:
Projection<V,V>
public class LatLngToECEFProjection<V extends NumberVector> extends java.lang.Object implements Projection<V,V>
Project (Latitude, Longitude) vectors to (X, Y, Z), from spherical coordinates to ECEF (earth-centered earth-fixed).- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private NumberVector.Factory<V>
factory
Vector factory to use.private EarthModel
model
Earth model to use.
-
Constructor Summary
Constructors Constructor Description LatLngToECEFProjection(EarthModel model)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleTypeInformation<? super V>
getInputDataTypeInformation()
Input type information.SimpleTypeInformation<V>
getOutputDataTypeInformation()
Output type restrictionvoid
initialize(SimpleTypeInformation<? extends V> in)
InitializeV
project(V data)
Project a single instance.
-
-
-
Field Detail
-
factory
private NumberVector.Factory<V extends NumberVector> factory
Vector factory to use.
-
model
private EarthModel model
Earth model to use.
-
-
Constructor Detail
-
LatLngToECEFProjection
public LatLngToECEFProjection(EarthModel model)
Constructor.- Parameters:
model
- Earth model to use.
-
-
Method Detail
-
initialize
public void initialize(SimpleTypeInformation<? extends V> in)
Description copied from interface:Projection
Initialize- Specified by:
initialize
in interfaceProjection<V extends NumberVector,V extends NumberVector>
- Parameters:
in
- Data type to use for projecting.
-
project
public V project(V data)
Description copied from interface:Projection
Project a single instance.- Specified by:
project
in interfaceProjection<V extends NumberVector,V extends NumberVector>
- Parameters:
data
- Data to project- Returns:
- Projected data
-
getInputDataTypeInformation
public SimpleTypeInformation<? super V> getInputDataTypeInformation()
Description copied from interface:Projection
Input type information.- Specified by:
getInputDataTypeInformation
in interfaceProjection<V extends NumberVector,V extends NumberVector>
- Returns:
- Type restriction
-
getOutputDataTypeInformation
public SimpleTypeInformation<V> getOutputDataTypeInformation()
Description copied from interface:Projection
Output type restriction- Specified by:
getOutputDataTypeInformation
in interfaceProjection<V extends NumberVector,V extends NumberVector>
- Returns:
- Output type
-
-