# Module: ol/render/Feature

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/render/Feature

### Classes

RenderFeature

### Functions

#### toFeature(renderFeature, geometryName){Feature}

render/Feature.js, line 523

      import {toFeature} from 'ol/render/Feature';

  Create an `ol/Feature` from an `ol/render/Feature`

  Name | Type | Description
  --- | --- | ---
  `renderFeature` | RenderFeature | RenderFeature
  `geometryName` | string | undefined | Geometry name to use when creating the Feature.

  ##### Returns:

  Newly constructed `ol/Feature` with properties, geometry, and id copied over.

#### toGeometry(renderFeature){Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon}

render/Feature.js, line 487

      import {toGeometry} from 'ol/render/Feature';

  Create a geometry from an `ol/render/Feature`

  Name | Type | Description
  --- | --- | ---
  `renderFeature` | RenderFeature | Render Feature

  ##### Returns:

  New geometry instance.

### Type Definitions

#### Type{'Point'} {'LineString'} {'LinearRing'} {'Polygon'} {'MultiPoint'} {'MultiLineString'}

  The geometry type. One of `'Point'`, `'LineString'`, `'LinearRing'`, `'Polygon'`, `'MultiPoint'` or 'MultiLineString'`.