dxf_to_geojson
Convert an AutoCAD DXF file's contents to GeoJSON — e.g. "convert
this DXF to GeoJSON", "AutoCAD drawing to GIS format", "DXF export from
Civil 3D to GeoJSON", "extract only the UTILITIES layer from this DXF".
POINT/LINE/LWPOLYLINE/POLYLINE/ARC/CIRCLE/ELLIPSE/SPLINE/HATCH/MPOLYGON convert
(curves tessellated into LineString/Polygon), TEXT/MTEXT become points
with a text property, and block INSERTs are expanded at their real
position/scale/rotation with ATTRIB values as properties; 3D solids and
meshes have no 2D GIS equivalent and are skipped, not errored on.
Every feature's properties.layer carries its DXF layer name (group code
8). Pass layer to return only that layer's entities — see
list_dxf_layers to discover what layer names exist first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dxf": "<dxf>"
},
"name": "dxf_to_geojson"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dxf | Yes | ||
| layer | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |