# Class DxfToGeoJsonInsertBlockMapper

Handles DXF `INSERT` entities (block insertions) and their nested entities. This dxfContext processes inserted blocks, applies transformations (rotation, scale, position), and generates GeoJSON or map layers for point-based block placements.

#####
Index

### Constructors

constructor

### Properties

dxfContext

### Methods

pointToGeoJSON
processInsert
processInsertFunction
processPoint

##
Constructors

### constructor

- new DxfToGeoJsonInsertBlockMapper(dxfContext): DxfToGeoJsonInsertBlockMapper

- Creates a new instance of the DxfToGeoJsonInsertBlockMapper.

  #### Parameters

  - dxfContext: IDxfJsonComponentContext

    The shared DXF conversion context.

  #### Returns DxfToGeoJsonInsertBlockMapper

##
Properties

### dxfContext

dxfContext: IDxfJsonComponentContext

The shared DXF processing context, including renderer objects and feature collections.

##
Methods

### pointToGeoJSON

- pointToGeoJSON(): void

- Converts all processed point features into a GeoJSONLayer and adds it to the sublayer list for visualization.

  #### Returns void

### processInsert

- processInsert(entity): Promise<void>

- Processes a top-level DXF `INSERT` entity and creates its corresponding GeoJSON point representation with block information.

  #### Parameters

  - entity: IInsertEntity

    The DXF `INSERT` entity to process.

  #### Returns Promise<void>

### processInsertFunction

- processInsertFunction(insert): Promise<void>

- Processes a DXF `INSERT` entity that references a block definition. Applies translation, rotation, and scaling to all entities within the block, creating corresponding GeoJSON point features and rendering symbols.

  #### Parameters

  - insert: IInsertEntity

    The DXF insert definition representing the block reference.

  #### Returns Promise<void>

  A Promise that resolves once all block entities are processed.

### processPoint

- processPoint(entity): Promise<void>

- Processes a DXF `POINT` entity and creates its corresponding GeoJSON point representation.

  #### Parameters

  - entity: IPointEntity

    The DXF `POINT` entity to process.

  #### Returns Promise<void>