|
|||||||||
| 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 java.lang.String |
definitionString
|
protected static java.util.Map<java.lang.String,WebSpatialReference> |
defSRs
|
static int |
GEOG_CS
|
protected int |
id
|
protected static java.util.Map<java.lang.Integer,WebSpatialReference> |
idSRs
|
static int |
PROJ_CS
|
protected int |
type
|
| Constructor Summary | |
|---|---|
|
WebSpatialReference()
Constructs an empty instance of WebSpatialReference. |
protected |
WebSpatialReference(int id,
java.lang.String definitionString,
int type)
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.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(java.lang.String definitionString)
Returns an instance of WebSpatialReference corresponding to a given definition string. |
static int |
getWebSpatialReferenceId(java.lang.String definitionString)
Returns the spatial reference id based on the specified definition string. |
int |
hashCode()
|
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.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 java.lang.String definitionString
protected int type
protected static java.util.Map<java.lang.Integer,WebSpatialReference> idSRs
protected static java.util.Map<java.lang.String,WebSpatialReference> defSRs
| Constructor Detail |
|---|
public WebSpatialReference()
protected WebSpatialReference(int id,
java.lang.String definitionString,
int type)
| Method Detail |
|---|
public int getId()
public java.lang.String getDefinitionString()
public int getType()
public static WebSpatialReference getWebSpatialReference(int id)
WebSpatialReference corresponding to its ID.
id - id of the spatial reference
WebSpatialReferencepublic static WebSpatialReference getWebSpatialReference(java.lang.String definitionString)
WebSpatialReference corresponding to a given definition string.
definitionString - spatial reference's definition string
WebSpatialReferencepublic static int getWebSpatialReferenceId(java.lang.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 java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||