I am learning the process of extracting only certain layers inside the dxf file and converting them into GEOJSON files using the ogr2ogr of Gdal. Let me show you an example.
ex) ogr2ogr -f "GEOJSON" "public/images/jsonData/plants.json" -where "Layer='plants'" public/images/Ceco.NET-Architecture-Tm-53.dxf entities
The command confirms that only data with the layer name dxf file internal plants are extracted and converted to geojson.
In this way, you can extract the geojson file by entering the layer name inside the dxf file, but is there a way to create multiple geojson by collecting the same layers inside the dxf file with one command?