NiVO / BY TECHNOGISGermany · Indonesia
CAD geometry interpretation

DXF LWPOLYLINE Bulges: Preserve Curves in a Drone CAD Handoff

Inspect bulge values, closure and object coordinates before replacing lightweight-polyline segments with straight chords in a CAD deliverable derived from drone mapping.

DXF LWPOLYLINE Bulges: Preserve Curves in a Drone CAD Handoff

Identify the curve representation before exporting a vertex list

A CAD boundary can appear curved while its DXF LWPOLYLINE stores only a small number of vertices. Exporting those positions and joining them with straight lines can change the intended geometry without producing a syntax error. In a NiVO mapping handoff, identify the actual entity type and accepted drawing revision before treating a vertex list as a complete boundary. This tutorial inspects bulge values and closure through a documentation-reviewed recipe. It does not claim a particular NiVO product exports this entity or describe a real mapped boundary, completed conversion or measured survey result.

Preserve the accepted DXF and its producing application record. Determine whether the recipient requires native curves, a deliberately approximated line or a different analytical representation. Those choices need an explicit contract rather than a convenient list of XY pairs. Keep project units, coordinate reference, origin and any export shift with the drawing. A visually smooth outline in a CAD viewer can be useful context, but it cannot establish what a GIS importer retained or what a text extraction omitted. Compare the intended segment meaning before changing the representation used for measurement or further processing.

Read bulge and closure as part of each segment

The ezdxf documentation explains that a bulge belongs to the vertex starting an arc segment and applies toward the following vertex. Zero represents a straight segment, while a bulge of one defines a semicircle. Its sign affects the arc direction. Therefore the same stored endpoint pair can describe different paths depending on its bulge. Inspect that component with the positions rather than assuming each adjacent pair is a straight edge. A missing column in a simplified export is not evidence that the original entity contained no curvature.

The last vertex needs the closed-state context: its bulge applies to the segment returning to the first vertex only when the polyline is closed. Autodesk documents the closed flag and the bulge, elevation and extrusion fields in the entity reference. Preserve those distinctions during inspection. A duplicated-looking first or last coordinate should not trigger an automatic edit before the actual closure rule is known. Keep source entity identity and the relevant segment record together so a reported curve difference can be located without guessing which row or imported line represents the original CAD element.

Restored NiVO VTOL V3 product image from the supplied brochure
Restored NiVO VTOL V3 product image from the supplied brochure.Source: NiVO / TechnoGIS catalogue materials supplied by the site owner · Catalogue photo
Product context only; this photograph does not depict the constructed examples in this article.

Inspect modelspace lightweight polylines without saving changes

The teaching recipe below reads a constructed filename and reports modelspace LWPOLYLINE entities, their handles, closure, elevation, extrusion and XY-bulge tuples. The selected point format is documented by ezdxf. No save or geometry-edit operation is included. Confirm the installed library, actual input support and expected entity scope before using it on a delivery. The code supplies no DXF file or output and was not executed on a project drawing. A readable recipe does not establish that every entity in a real CAD package was inspected or interpreted successfully.

The scope is deliberately narrow. Old-style POLYLINE entities, separate ARC objects, paper layouts and geometry inside block references need their own supported inspection. An empty result does not prove that a drawing contains no curves. Record the actual selection and any reader diagnostics, then compare it with the intended export from the producing application. Preserve the accepted original while investigating. If structural problems require recovery tooling, identify that as a separate operation with its own candidate output and review rather than silently describing a recovered or changed drawing as the unmodified source.

# Teaching filename; supported installed ezdxf required.
import ezdxf

doc = ezdxf.readfile("accepted-boundaries.dxf")
for polyline in doc.modelspace().query("LWPOLYLINE"):
    print({
        "handle": polyline.dxf.handle,
        "closed": polyline.closed,
        "elevation": polyline.dxf.elevation,
        "extrusion": polyline.dxf.extrusion,
        "xy_bulge": polyline.get_points("xyb"),
    })

Keep object coordinates and world interpretation separate

LWPOLYLINE points are stored in the object coordinate system, with elevation and extrusion defining the relevant plane context. Both Autodesk and ezdxf document that relationship. Raw XY tuples therefore should not automatically be labelled world coordinates or projected survey eastings and northings. Record the actual coordinate interpretation and any required transformation before comparing an extracted line with another delivery. A drawing that appears correctly oriented in its creator application may rely on entity or block context that a simplified coordinate export did not preserve.

Use suitable documented geometry handling when the recipient needs world-coordinate primitives, and record its behavior. A coordinate conversion and a curve approximation are separate decisions; combining them without explanation can hide the source of a discrepancy. Preserve the original bulge, closure and plane evidence beside any transformed result. Do not repair apparent offsets by repeatedly swapping axes or changing a reference label until a drawing looks aligned. Establish the source relationship from the producing workflow and project evidence, then evaluate the candidate representation under the actual requirements of the receiving GIS or CAD operation.

Choose any curve approximation as a documented derivative

A receiving format may require straight segments instead of native arcs. In that case, define the approximation method and acceptable deviation for the actual task before conversion. Do not choose an arbitrary universal tolerance from the teaching geometry. A constructed semicircle with a chord of two unassigned drawing units has radius one; replacing it with the chord removes its curved path entirely. That simple relationship illustrates the representation issue, not a recommended survey tolerance, real boundary dimension or measured error in a NiVO delivery. More stored vertices alone do not establish an acceptable approximation.

Inspect the actual derivative against the source curves at relevant locations, including any closing segment. Preserve stable entity or feature identities and the conversion settings used for comparison. Check the receiving application rather than relying solely on a screenshot from the source CAD system. If a non-uniform transform or unsupported curve representation changes the geometry, retain the warning and choose a suitable supported workflow. Keep any candidate derivative distinct from the accepted drawing, and tie the findings to that exact revision so later edits do not inherit an acceptance claim from a different conversion.

Deliver the segment interpretation with the CAD file

A useful review record names the drawing revision, producing and receiving tools, selected entity types and the source handles inspected. Include closure, bulge and coordinate-plane findings with the actual conversion method, if one was used. State which layouts and block contexts were included and which remain outside the check. Another analyst should be able to explain why two stored vertices can describe an arc and why the last bulge depends on closure. Keep actual comparison evidence available rather than presenting the unexecuted recipe or semicircle arithmetic as a completed drawing validation.

For NiVO mapping discussions, this makes a changed-boundary complaint specific to the segment representation, extraction scope and coordinate context. It complements separate checks of project reference, line identity and intended analytical use. A preserved bulge does not itself prove that the mapped boundary is correct or sufficiently accurate for a task. Retain those assessment requirements with the delivery. The result is a reproducible CAD handoff in which recipients can distinguish the native curve from a documented approximation and understand the remaining evidence needed before using either representation for measurement or further editing.

Technical references

  1. Autodesk DXF reference — LWPOLYLINE group codes ↗
  2. ezdxf LWPOLYLINE — bulge, closure, point formats and OCS ↗
  3. ezdxf usage — loading, modelspace and entity queries ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team