DXF extension: Invalid output on empty feature collection

Description

The DXF extension creates an invalid DXF if the input feature collection is empty.
The might be due to a bbox comprising no features.

Reason:
An geometric envelop is calculated, but the envelop is null internally. The calculation of the aspect ration fails (division by zero) and a none valid aspect ratio is written to the DXF.
The DXF is broken then.

BTW: There is no component "DXF" to choose, so I selected "Main". Maybe anyone can correct this.

Environment

None

Activity

Andreas W 
April 13, 2017 at 3:10 PM

Created Pull request 2251 as fix

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Components

Priority

Created April 13, 2017 at 3:03 PM
Updated November 15, 2021 at 10:09 AM
Resolved April 29, 2017 at 9:27 AM