globalmapper.CreateVectorLayerFromFindResults

globalmapper.CreateVectorLayerFromFindResults(str aDescription, GM_Projection_t aProj, GM_FoundFeatureResults_t aResultList) GM_LayerHandle_t32[source]

Creates a new custom layer from a list of vector features returned from a find call, like FindFeaturesInArea. The handle to the newly created layer is returned. You must call CloseLayer on the returned handle when you are done with it. If a problem occurs, 0 is returned for the layer handle.

Parameters:
  • aDescription (str) – Description to use for layer (can be None to use default)

  • aProj (GM_Projection_t) – Native projection of new layer

  • aResultList (GM_FoundFeatureResults_t) – Results of find operation to create new layer from

Returns:

The new vector layer of found features

Return type:

GM_LayerHandle_t32