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>factoryVector factory to use.private EarthModelmodelEarth 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 restrictionvoidinitialize(SimpleTypeInformation<? extends V> in)InitializeVproject(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:ProjectionInitialize- Specified by:
initializein 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:ProjectionProject a single instance.- Specified by:
projectin 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:ProjectionInput type information.- Specified by:
getInputDataTypeInformationin interfaceProjection<V extends NumberVector,V extends NumberVector>- Returns:
- Type restriction
-
getOutputDataTypeInformation
public SimpleTypeInformation<V> getOutputDataTypeInformation()
Description copied from interface:ProjectionOutput type restriction- Specified by:
getOutputDataTypeInformationin interfaceProjection<V extends NumberVector,V extends NumberVector>- Returns:
- Output type
-
-