SpatialDissolve =============== .. currentmodule:: globalmapper .. py:function:: SpatialDissolve (GM_LayerHandle_t32 aLayer, GM_SpatialOps_Params_t aParams, float aSmoothing, GM_FeatureGrouping_t8 aGrouping, str aStr) -> GM_Error_t32 The **Dissolve** spatial transform creates a new layer with a polygon that combines all overlapping or touching areas from *aLayer* into one new area. For example, if you dissolved a layer showing the US state borders, the resulting polygon would be the US national border. The *aGrouping* parameter specifies whether all areas should be dissolved together, or just areas of equal attributes. :param GM_LayerHandle_t32 aLayer: Input layer :param GM_SpatialOps_Params_t aParams: Parameters :param GM_FeatureGrouping_t8 aGrouping: Grouping type :param str aStr: The attribute list string; may be an empty string :returns: Error Code :rtype: GM_Error_t32 | .. list-table:: :width: 100% :class: borderless :header-rows: 1 * - BEFORE - AFTER * - .. image:: ../images/SpatialAnalysis_Images/Red_Blue_Circles.png :width: 230px :height: 150px :align: center - .. image:: ../images/SpatialAnalysis_Images/DissolveAfter.png :width: 247px :height: 150px :align: center | Example ------- The following is an example of SpatialDissolve. .. literalinclude:: ../../sample_tests/sample_code/SpatialDissolve_sample.py :language: python