|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.data.geometry.WebSpatialReference
public final class WebSpatialReference
WebSpatialReference
is a class representing a spatial reference.
Field Summary | |
---|---|
protected String |
definitionString
|
protected static Map<String,WebSpatialReference> |
defSRs
|
static int |
GEOG_CS
|
protected int |
id
|
protected static Map<Integer,WebSpatialReference> |
idSRs
|
static int |
PROJ_CS
|
protected int |
type
|
Constructor Summary | |
---|---|
|
WebSpatialReference()
Constructs an empty instance of WebSpatialReference. |
protected |
WebSpatialReference(int id,
String definitionString,
int type)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getDefinitionString()
Returns spatial reference definition string. |
WebPolygon |
getHorizon(boolean inGCS)
Returns the horizon of this spatial reference. |
int |
getId()
Return spatial reference ID. |
int |
getType()
Returns spatial reference type. |
static WebSpatialReference |
getWebSpatialReference(int id)
Returns an instance of WebSpatialReference corresponding to its ID. |
static WebSpatialReference |
getWebSpatialReference(String definitionString)
Returns an instance of WebSpatialReference corresponding to a given definition string. |
static int |
getWebSpatialReferenceId(String definitionString)
Returns the spatial reference id based on the specified definition string. |
int |
hashCode()
|
void |
readExternal(ObjectInput in)
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GEOG_CS
public static final int PROJ_CS
protected int id
protected String definitionString
protected int type
protected static Map<Integer,WebSpatialReference> idSRs
protected static Map<String,WebSpatialReference> defSRs
Constructor Detail |
---|
public WebSpatialReference()
protected WebSpatialReference(int id, String definitionString, int type)
Method Detail |
---|
public int getId()
public String getDefinitionString()
public int getType()
public static WebSpatialReference getWebSpatialReference(int id)
WebSpatialReference
corresponding to its ID.
id
- id of the spatial reference
WebSpatialReference
public static WebSpatialReference getWebSpatialReference(String definitionString)
WebSpatialReference
corresponding to a given definition string.
definitionString
- spatial reference's definition string
WebSpatialReference
public static int getWebSpatialReferenceId(String definitionString)
definitionString
- the spatial reference definition string
public WebPolygon getHorizon(boolean inGCS)
inGCS
- . This parameter has an affect only if the current spatial reference is in Projected Coordinate
System. When true, the horizon will be returned in the Geographic Coordinate System that this spatial
reference is based on.
WebPolygon
objectpublic String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
IOException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |