限定符和类型 | 字段和说明 |
---|---|
protected boolean |
swigCMemOwn |
构造器和说明 |
---|
Projection(long cPtr,
boolean cMemoryOwn) |
限定符和类型 | 方法和说明 |
---|---|
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 |
fromLatLong(double lat,
double lng)
Transforms a position given using latitutde-longitude coordinates from the WGS84 coordinate system to the coordinate system of this projection.
|
MapPos |
fromWgs84(MapPos pos)
Transforms a position from the WGS84 coordinate system to the coordinate system of this projection.
|
MapBounds |
getBounds()
返回此投影的边界。
|
static long |
getCPtr(Projection obj) |
double |
getLocalScale(MapPos pos)
返回指定位置的本地级别。
|
java.lang.String |
getName()
获取投影名称,例如"EPSG:3857"
|
int |
hashCode()
Returns the hash value of this object.
|
boolean |
isSupportWgs84() |
void |
setSupportWgs84(boolean bSupport) |
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 |
toLatLong(double x,
double y)
Transforms a position from the coordinate system of this projection to the WGS84 coordinate system latitude-longitute coordinates.
|
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
在类中 java.lang.Object
public void delete()
public static Projection swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
cPtr
- The native pointer of the instance.cMemoryOwn
- The ownership flag.public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
obj
- The reference object.public int hashCode()
hashCode
在类中 java.lang.Object
public MapBounds getBounds()
public double getLocalScale(MapPos pos)
pos
- 在内部坐标系中的位置。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. It should be encoded as longitude-latitude.public MapPos toWgs84(MapPos pos)
pos
- The position in the coordinate system of this projection.public MapPos fromLatLong(double lat, double lng)
lat
- The latitude in the WGS84 coordinate system. It should be in range -90..90.lng
- The longitude in the WGS84 coordinate system. It should be in range -180..180.public MapPos toLatLong(double x, double y)
x
- The x position in the coordinate system of this projection.y
- The y position in the coordinate system of this projection.public java.lang.String getName()
public void setSupportWgs84(boolean bSupport)
public boolean isSupportWgs84()
public java.lang.String swigGetClassName()
public java.lang.Object swigGetDirectorObject()