📐 DXF Reader
The DXF reader allows you to upload CAD-style Drawing Exchange Format (DXF) files into Geoflip. DXF is commonly used in engineering and design workflows but does not contain CRS (coordinate reference system) information. For this reason, you must always provide an EPSG code in your request config.
📜 Format Details
- File type:
.dxf(AutoCAD Drawing Exchange Format) - CRS handling: DXF files have no CRS metadata — you must supply
input.epsgin your config. - Upload type: Send the
.dxffile asinput_filein a multipart form.
If you omit input.epsg, the API will return:
{
"detail": "field 'input.epsg' is required for dxf"
}
⚙️ Example Config
{
"input": {
"format": "dxf",
"epsg": 4326
},
"transformations": [
{ "type": "buffer", "params": { "distance": 500, "units": "meters" } },
{ "type": "union" }
],
"output": {
"format": "geojson",
"epsg": 4326
}
}
📑 Example API Call
curl -X POST https://api.geoflip.io/transform \
-F 'config={
"input":{"format":"dxf","epsg":4326},
"transformations":[
{"type":"buffer","params":{"distance":500,"units":"meters"}},
{"type":"union"}
],
"output":{"format":"geojson","epsg":4326}
}' \
-F "input_file=@/path/to/alignments.dxf;type=application/dxf"
Response
{ "job_id": "abcd-ef01-2345-6789" }
Poll for status:
curl https://api.geoflip.io/result/status/abcd-ef01-2345-6789
And download from the output_url when status is SUCCESS.
✅ Notes
input.epsgis mandatory for DXF uploads.- DXF is well-suited for CAD drawings, alignments, and engineering datasets.
- Transformations like buffer and union can be applied just like other formats.
- Outputs can be written to
geojson,shp, ordxf.
➡️ Next Steps
- Learn about the GeoJSON Reader
- Learn about the Shapefile Reader
- See the Output Formats