Base interface for maps that perform on-the-fly rasterization of vector shapes.
interface
|
IMapShapes
|
with
|
<TShape>
|
as
|
class, IMapShape
|
extends
|
IGeorefInfo
|
||||
base of
|
IHeightmapShape
|
||||
IPixelPyramidShape
|
A map shape consists of a vector shape (i.e. an IShape object) and additional information concerning rasterization. When adding a map shape, it will be transformed to the georeferenced raster of this object (see Georef). This is done as follows:
Returns georeferencing information.
property
|
Georef
{
get
}
|
||
type
|
Raster
|
||
value
|
The
georeferencing
object
or
null
if
no
georeferencing
is
available. |
||
inherited
|
IGeorefInfo.Georef
|
Returns a MapInfo value that describes the used map raster.
property
|
Map
{
get
}
|
||
type
|
MapInfo
|
||
value
|
The map info value. | ||
inherited
|
IMapInfo.Map
|
The accuracy to use for edge subdivision when transforming shapes in ShapeAdd resp. ShapePrepare.
property
|
ShapeAccuracy
{
get
set
}
|
||
type
|
float64
|
||
value
|
|
The maximum allowed error, specified in the coordinate system of this map (see Coordinates). |
Remarks:
Set
to
0
to
disable
edge
subdivision.
Defaults
to
0
.
The map shapes.
property
|
Shapes
{
get
}
|
||
type
|
IVectorConst<TShape>
|
||
value
|
|
The list of map shapes (as returned by ShapeAdd). |
Adds a map shape.
method
|
ShapeAdd
(TShape shape)
|
||
type
|
TShape
|
||
params
|
shape
|
[not-null]
|
The map shape to add. |
returns
|
The
added
map
shape
or
null
if
empty
(after
preparation). |
Remarks:
It may be necessary to perform some preparation on the given shape before it can be used by this map object. The ShapePrepare method can be used to prepare shapes in the background to avoid lengthy computations here.
Prepares the given map shape for being used by this object.
[ThreadSafe]
|
||||
method
|
ShapePrepare
(TShape shape)
|
|||
type
|
TShape
|
|||
params
|
shape
|
[not-null]
|
The map shape to prepare. | |
returns
|
The
prepared
map
shape
or
null
if
empty. |
Removes a map shape.
method
|
ShapeRemove
(TShape shape)
|
||
params
|
shape
|
[not-null]
|
The map shape to remove (as returned by ShapeAdd resp. ShapePrepare. |