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

NameDescription
Map()Creates new instance of the Map class.
Map(width, height)Creates new instance of the Map class.

Properties

NameTypeAccessDescription
background_colorSystem.Drawing.Colorr/wBackground color of the map. Defaults to .
extentExtentr/wSpecifies bounds of map to render.
If set to , extent is calculated during rendering to include all geometries in all layers.
heightMeasurementr/wVisual height of the map.
paddingMeasurementr/wSpecifies padding to add to the extent.
resolutiondoubler/wResolution to be used to render this map and to convert between Measurement. Defaults to 96.
spatial_reference_systemSpatialReferenceSystemr/wMap.spatial_reference_system of the map.
widthMeasurementr/wVisual width of the map.

Methods

NameDescription
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 Map class.

Constructor: Map(width, height)

 Map(width, height) 

Creates new instance of the Map class.

Parameters:

ParameterTypeDescription
widthMeasurementWidth of the map.
heightMeasurementHeight 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:

ParameterTypeDescription
features_sequenceFeaturesSequenceA 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:

ParameterTypeDescription
features_sequenceFeaturesSequenceA features sequence to represent by VectorMapLayer.
symbolizerVectorSymbolizerA symbolizer to use for rendering. If , default symbolizer is used.

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:

ParameterTypeDescription
features_sequenceFeaturesSequenceA features sequence to represent by VectorMapLayer.
symbolizerVectorSymbolizerA symbolizer to use for rendering.
labelingLabelingLabeling to use to label features in layer. If , NullLabeling will be used.

Method: add(layer, colorizer, keep_open)

 add(layer, colorizer, keep_open) 

Creates a RasterMapLayer with default colorizer and adds it to the map.

Parameters:

ParameterTypeDescription
layerRasterLayerA vector layer to represent by RasterLayer.
colorizerRasterColorizerA colorizer to use for rendering. If , default colorizer is used.
keep_openboolto leave the raster layer open after the Map object is disposed;
to dispose the layer.

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:

ParameterTypeDescription
layerVectorLayerA vector layer to represent by VectorMapLayer.
keep_openboolto leave the vector layer open after the Map object is disposed;
to dispose the layer.

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:

ParameterTypeDescription
layerVectorLayerA vector layer to represent by VectorMapLayer.
symbolizerVectorSymbolizerA symbolizer to use for rendering. If , default symbolizer is used.
keep_openboolto leave the vector layer open after the Map object is disposed;
to dispose the layer.

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:

ParameterTypeDescription
layerVectorLayerA vector layer to represent by VectorMapLayer.
symbolizerVectorSymbolizerA symbolizer to use for rendering. If , default symbolizer is used.
labelingLabelingLabeling to use to label features in layer. If , default NullLabeling will be used.
default_reference_systemSpatialReferenceSystemSpecifies a value for a source spatial reference (layer\sequence) if that is missing. Default null will be used.
keep_openboolto leave the layer open after the Map object is disposed; otherwise, .

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:

ParameterTypeDescription
layerVectorLayerA vector layer to represent by VectorMapLayer.
symbolizerVectorSymbolizerA symbolizer to use for rendering. If , default symbolizer is used.
labelingLabelingLabeling to use to label features in layer. If , default NullLabeling will be used.
keep_openboolto leave the layer open after the Map object is disposed; otherwise, .

Method: add(map_layer)

 add(map_layer) 

Adds a layer to the map. Layers are rendered in addition order.

Parameters:

ParameterTypeDescription
map_layerMapLayerThe layer to be added.

Method: render(output_path, renderer)

 render(output_path, renderer) 

Renders map into a file.

Parameters:

ParameterTypeDescription
output_pathstringPath to the output file.
rendererRendererRenderer to use.

Method: render(output_path, renderer)

 render(output_path, renderer) 

Renders map into a file.

Parameters:

ParameterTypeDescription
output_pathAbstractPathPath to the output file.
rendererRendererRenderer to use.