public class Projection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
Projection(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
boolean |
equals(java.lang.Object obj)
Checks if this object is equal to the specified object.
|
protected void |
finalize() |
double |
fromInternalScale(double size)
Converts internal size to meters at the equator.
|
MapPos |
fromWgs84(MapPos pos)
Transforms a position from the WGS84 coordinate system to the coordinate system of this projection.
|
MapBounds |
getBounds()
Returns the bounds of this projection.
|
static long |
getCPtr(Projection obj) |
double |
getLocalScale(MapPos pos)
Returns local scale for the specified position.
|
java.lang.String |
getName()
Return name of this projection in Well-Known format.
|
int |
hashCode()
Returns the hash value of this object.
|
static Projection |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
MapPos |
toWgs84(MapPos pos)
Transforms a position from the coordinate system of this projection to the WGS84 coordinate system.
|
public static long getCPtr(Projection obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public static Projection swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public MapBounds getBounds()
public double getLocalScale(MapPos pos)
pos
- The position in the internal coordinate system.public double fromInternalScale(double size)
size
- The size in the internal coordinate system.public MapPos fromWgs84(MapPos pos)
pos
- The position in the WGS84 coordinate system.public MapPos toWgs84(MapPos pos)
pos
- The position in the coordinate system of this projection.public java.lang.String getName()
public java.lang.String swigGetClassName()
public java.lang.Object swigGetDirectorObject()