Abstract base class for IGeoObject implementations.
abstract class
|
GeoObject
|
implements
|
IGeoObject
|
||
extends
|
SerializableBase
|
||||
base of
|
CoordinateOperation
|
||||
CoordinateOperationMethod
|
|||||
CoordinateSystem
|
|||||
DatumOperation
|
|||||
Ellipsoid
|
|||||
GeodeticDatum
|
|||||
PrimeMeridian
|
|||||
Raster
|
|||||
UnitOfMeasure
|
|||||
VerticalDatum
|
Returns the configuration value that describes this object.
public
virtual
method
|
ToConfig
()
|
||
type
|
ConfigValue
|
||
returns
|
|
The configuration value. | |
implements
|
IConfigurable.ToConfig
|
Remarks:
All configurable objects need to implement this interface. For simple types, it is preferable to delegate to ToValue.
The returned value may be of type Invalid, which means that this object in its current state cannot be described with the configuration API.
Before returning the resulting configuration value, Cache must be called on it, passing this IConfigurable object as parameter.
public
constant
|
FirstType
=
GeoObjectType.UnitOfMeasure
|
||
type
|
GeoObjectType
|
public
constant
|
LastType
=
GeoObjectType.Raster
|
||
type
|
GeoObjectType
|
Common constant that can be used when custom user-defined geo objects are created.
public
constant
|
UserDefined
=
"user-defined"
|
||
type
|
string
|
The human-readable name of this object.
public
property
|
Name
{
get
}
|
||
type
|
string
|
||
value
|
|
The object name. | |
implements
|
IGeoObject.Name
|
Returns the serial type of this object.
public
property
|
SerialType
{
get
}
|
||
type
|
ISerialTypeInfo
|
||
value
|
|
The serial type. | |
inherited
|
SerializableBase.SerialType
|
Returns the serial data version.
public
virtual
property
|
SerialVersion
{
get
}
|
||
type
|
int32
|
||
value
|
|
The serial data version tag. | |
inherited
|
SerializableBase.SerialVersion
|
Remarks:
An ISerializable implementation is required to support all versions up to the one returned by SerialVersion.
See also:
ISerializable.SerializeThe type of this geo object.
public
property
|
Type
{
get
}
|
||
type
|
GeoObjectType
|
||
value
|
The geo object type. | ||
implements
|
IGeoObject.Type
|
Initializes the state of this object from the given data stream.
public
override
method
|
Deserialize
(int32 serialVersion,
ISerializer data)
|
||
type
|
ISerializable
|
||
params
|
serialVersion
|
[>=1]
|
The serial data version. |
data
|
[not-null]
|
The serial data stream. | |
returns
|
|
The
deserialized
object.
This
will
typically
be
this ,
but
in
some
circumstances,
another
instance
may
be
returned
(e.g.
singletons).
|
|
overrides
|
SerializableBase.Deserialize
|
Remarks:
The Deserialize method will be called immediately after the object has been instantiated via its default constructor.
The provided serialVersion number is guaranteed to be equal to or less than the SerialVersion returned by this object (i.e. ISerializable object must provide backwards compatibility).
See also:
ISerializable.SerializeCompares this object with the given one.
[Pure]
|
||||
public
override
sealed
method
|
Equals
(object other)
|
|||
type
|
bool
|
|||
params
|
other
|
The object to compare to. | ||
returns
|
true
if
this
object
is
equal
to
other,
false
if
not.
|
Compares this object with the given one.
[Pure]
|
||||
public
virtual
method
|
Equals
(IGeoObject other)
|
|||
type
|
bool
|
|||
params
|
other
|
The object to compare to. | ||
returns
|
true
if
this
object
is
equal
to
other,
false
if
not.
|
|||
implements
|
IEquatable.Equals
|
[Pure]
|
||||
public
override
sealed
method
|
GetHashCode
()
|
|||
type
|
int32
|
Serializes the current state of this object to the given data stream.
public
override
method
|
Serialize
(ISerializer data)
|
||
params
|
data
|
[not-null]
|
The serial data stream. |
overrides
|
SerializableBase.Serialize
|
See also:
ISerializable.Deserialize
[Pure]
|
||||
public
override
sealed
method
|
ToString
()
|
|||
type
|
string
|
public
static
method
|
TypeTag
(string tag)
|
||
type
|
GeoObjectType
|
||
params
|
tag
|
public
static
method
|
TypeTag
(GeoObjectType type)
|
||
type
|
string
|
||
params
|
type
|
The hashcode of this object.
protected
field
|
hashCode
|
||
type
|
int32
|
Remarks:
The hashcode must be computed incrementally in each subclass constructor.
See also:
HashCode
protected
constructor
|
GeoObject
(ISerialTypeInfo serialType)
|
||
params
|
serialType
|
Creates a new instance of GeoObject.
protected
constructor
|
GeoObject
(ISerialTypeInfo serialType,
string name,
GeoObjectType type,
bool doesEqualName)
|
||
params
|
serialType
|
[not-null]
|
The serial type. |
name
|
Human-readable
name
of
the
geo
object.
If
empty
or
null,
UserDefined
will
be
used
instead.
Defaults
to
null .
|
||
type
|
The geo object type. | ||
doesEqualName
|
Is the geo object name included when testing for equality? |