📐 DXF Writer
The DXF writer allows you to export results from Geoflip as AutoCAD Drawing Exchange Format (DXF) files. DXF is widely used in CAD and engineering systems for representing points, lines, and polygons.
📜 Format Details
- File type:
.dxf - DXF version: Geoflip outputs DXF R2018, chosen for maximum compatibility across CAD systems.
- Delivery: Always returned as a single DXF file.
- Layers: Geoflip organizes entities into distinct layers:
annotationpointpolylinepolygonmultipatch
- CRS handling: The output CRS is defined by
output.epsg.
Geometry Mapping
When exporting to DXF:
- Points →
POINT - LineStrings →
LWPOLYLINE - Polygons → Closed
LWPOLYLINE+SOLID HATCH(holes supported) - MultiPolygons → Each part written as above
⚙️ Example Config
{
"input": { "format": "shp" },
"transformations": [
{ "type": "union" }
],
"output": {
"format": "dxf",
"epsg": 3857
}
}
📑 Example API Call
curl -X POST https://api.geoflip.io/transform \
-F 'config={
"input":{"format":"shp"},
"transformations":[{"type":"union"}],
"output":{"format":"dxf","epsg":3857}
}' \
-F "input_file=@/path/to/parcels.zip;type=application/zip"
Response
{ "job_id": "abcd-ef01-2345-6789" }
Poll for status:
curl https://api.geoflip.io/result/status/abcd-ef01-2345-6789
When the status is SUCCESS, download from the output_url:
curl -O https://api.geoflip.io/result/output/abcd-ef01-2345-6789
This will download a .dxf file containing your transformed geometries, organized into CAD layers.
✅ Notes
- Geoflip always exports in DXF R2018 format for broad compatibility.
- Entities are grouped into logical CAD layers.
- Supports input from GeoJSON, SHP, and DXF.
- Ideal when output needs to be integrated into AutoCAD, Civil 3D, or other CAD/engineering systems.
➡️ Next Steps
- Learn about the GeoJSON Writer
- Learn about the Shapefile Writer
- Revisit Writer Formats Overview