|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.wms.client.SpatialReference
public class SpatialReference
Defines a CRS or a SRS.
SpatialReference ref = new SpatialReference(); ref.setName("EPSG:3416");
Field Summary | |
---|---|
static SpatialReference |
CRS84
A CRS:84 instance. |
static SpatialReference |
EPSG4267
A EPSG:4267 instance. |
static SpatialReference |
EPSG4326
A EPSG:4326 instance. |
protected static int[] |
EPSGLowerRange
The EPSG code lower range. |
protected static int[] |
EPSGUpperRange
The EPSG code upper range. |
protected static Properties |
serviceProperties
The serviceProperties is persisted in the "services.properties" file. |
static boolean |
SWAP_AXIS_ENABLED
Sets to false to disable the axis swap. |
Constructor Summary | |
---|---|
SpatialReference()
Instantiates an object of SpatialReference. |
|
SpatialReference(String name)
Instantiates an object of SpatialReference with the given name. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compares the specified object with this instance for equality. |
SpatialReference |
getCopy()
Returns a copy of the current instance. |
String |
getName()
Gets the name of the SpatialReference. |
int |
hashCode()
Returns the hash code of the request object. |
void |
setName(String name)
Sets the name of the SpatialReference. |
boolean |
swapAxis(String version)
Return true if the SpatialReference need to swap x, y axis. |
int |
toEPSG()
Converts the spatialReference to EPSG code. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SpatialReference EPSG4326
public static final SpatialReference EPSG4267
public static final SpatialReference CRS84
protected static Properties serviceProperties
protected static int[] EPSGLowerRange
EPSGLowerRange[i]<=code<=EPSGUpperRange[i]
public static boolean SWAP_AXIS_ENABLED
protected static int[] EPSGUpperRange
EPSGLowerRange[0...n]<=code<=EPSGUpperRange[0...n]
Constructor Detail |
---|
public SpatialReference()
public SpatialReference(String name)
name
- e.g. "CRS:84"Method Detail |
---|
public SpatialReference getCopy()
public boolean swapAxis(String version)
version
- public int toEPSG()
public String getName()
public void setName(String name)
name
- The name to set, e.g. "EPSG:4326".public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- object to be compared for equality with this instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |