SpatialCircle ============= .. currentmodule:: globalmapper .. py:function:: SpatialCircle (GM_LayerHandle_t32 aLayer, GM_SpatialOps_Params_t aParams, GM_Distance_t aDistance, GM_FeatureGrouping_t8 aGrouping, str aStr) -> GM_Error_t32 The **Circle** spatial transform creates a new layer with a circle around the center point of each feature or collection of features. The *aDistance* parameter is the radius in the given units. If *aDistance* is 0, then it creates a minimum enclosing circle for the entire feature. :param GM_LayerHandle_t32 aLayer: Input layer :param GM_SpatialOps_Params_t aParams: Parameters :param GM_Distance_t aDistance: Circle radius :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/multShapes.png :width: 151px :height: 150px :align: center - .. image:: ../images/SpatialAnalysis_Images/CircleAfter.png :width: 151px :height: 150px :align: center | Example ------- The following is an example of SpatialCircle. .. literalinclude:: ../../sample_tests/sample_code/SpatialCircle_sample.py :language: python