Map Class
Summary: Map is a collection of layers that can be rendered on top of each other via Renderer.
Module: aspose.gis.rendering
Full Name: aspose.gis.rendering.Map
Aspose.PSD Version: 25.9.0
Constructors
| Name | Description |
|---|---|
| Map() | Creates new instance of the |
| Map(width, height) | Creates new instance of the |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| background_color | System.Drawing.Color | r/w | Background color of the map. Defaults to . |
| extent | Extent | r/w | Specifies bounds of map to render. If set to |
| height | Measurement | r/w | Visual height of the map. |
| padding | Measurement | r/w | Specifies padding to add to the extent. |
| resolution | double | r/w | Resolution to be used to render this map and to convert between Measurement. Defaults to 96. |
| spatial_reference_system | SpatialReferenceSystem | r/w | Map.spatial_reference_system of the map. |
| width | Measurement | r/w | Visual width of the map. |
Methods
| Name | Description |
|---|---|
| add(features_sequence) | Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order. |
| add(features_sequence, symbolizer) | Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order. |
| add(features_sequence, symbolizer, labeling) | Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order. |
| add(layer, colorizer, keep_open) | Creates a RasterMapLayer with default colorizer and adds it to the map. |
| add(layer, keep_open) | Creates a VectorMapLayer with default symbolizer and adds it to the map. Layers are rendered in addition order. |
| add(layer, symbolizer, keep_open) | Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order. |
| add(layer, symbolizer, labeling, default_reference_system, keep_open) | Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order. |
| add(layer, symbolizer, labeling, keep_open) | Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order. |
| add(map_layer) | Adds a layer to the map. Layers are rendered in addition order. |
| render(output_path, renderer) | Renders map into a file. |
| render(output_path, renderer) | Renders map into a file. |
Constructor: Map()
Map()
Creates new instance of the
Constructor: Map(width, height)
Map(width, height)
Creates new instance of the
Parameters:
| Parameter | Type | Description |
|---|---|---|
| width | Measurement | Width of the map. |
| height | Measurement | Height of the map. |
Method: add(features_sequence)
add(features_sequence)
Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| features_sequence | FeaturesSequence | A features sequence to represent by VectorMapLayer. |
Method: add(features_sequence, symbolizer)
add(features_sequence, symbolizer)
Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| features_sequence | FeaturesSequence | A features sequence to represent by VectorMapLayer. |
| symbolizer | VectorSymbolizer | A symbolizer to use for rendering. If |
Method: add(features_sequence, symbolizer, labeling)
add(features_sequence, symbolizer, labeling)
Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| features_sequence | FeaturesSequence | A features sequence to represent by VectorMapLayer. |
| symbolizer | VectorSymbolizer | A symbolizer to use for rendering. |
| labeling | Labeling | Labeling to use to label features in layer. If |
Method: add(layer, colorizer, keep_open)
add(layer, colorizer, keep_open)
Creates a RasterMapLayer with default colorizer and adds it to the map.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| layer | RasterLayer | A vector layer to represent by RasterLayer. |
| colorizer | RasterColorizer | A colorizer to use for rendering. If |
| keep_open | bool |
Method: add(layer, keep_open)
add(layer, keep_open)
Creates a VectorMapLayer with default symbolizer and adds it to the map. Layers are rendered in addition order.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| layer | VectorLayer | A vector layer to represent by VectorMapLayer. |
| keep_open | bool |
Method: add(layer, symbolizer, keep_open)
add(layer, symbolizer, keep_open)
Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| layer | VectorLayer | A vector layer to represent by VectorMapLayer. |
| symbolizer | VectorSymbolizer | A symbolizer to use for rendering. If |
| keep_open | bool |
Method: add(layer, symbolizer, labeling, default_reference_system, keep_open)
add(layer, symbolizer, labeling, default_reference_system, keep_open)
Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| layer | VectorLayer | A vector layer to represent by VectorMapLayer. |
| symbolizer | VectorSymbolizer | A symbolizer to use for rendering. If |
| labeling | Labeling | Labeling to use to label features in layer. If |
| default_reference_system | SpatialReferenceSystem | Specifies a value for a source spatial reference (layer\sequence) if that is missing. Default null will be used. |
| keep_open | bool |
Method: add(layer, symbolizer, labeling, keep_open)
add(layer, symbolizer, labeling, keep_open)
Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| layer | VectorLayer | A vector layer to represent by VectorMapLayer. |
| symbolizer | VectorSymbolizer | A symbolizer to use for rendering. If |
| labeling | Labeling | Labeling to use to label features in layer. If |
| keep_open | bool |
Method: add(map_layer)
add(map_layer)
Adds a layer to the map. Layers are rendered in addition order.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| map_layer | MapLayer | The layer to be added. |
Method: render(output_path, renderer)
render(output_path, renderer)
Renders map into a file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| output_path | string | Path to the output file. |
| renderer | Renderer | Renderer to use. |
Method: render(output_path, renderer)
render(output_path, renderer)
Renders map into a file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| output_path | AbstractPath | Path to the output file. |
| renderer | Renderer | Renderer to use. |