I want to create a polygon from a DXF file. I used v.in.dxf to convert the DXF file to GRASS vector map format. when I run the polygonize algorithm, it gives me the following error message(here I used "a.dxf" as the input)
Algorithm Polygonize starting... Processing lines... Noding lines... Polygonizing...
No polygons were created!.
I have created a script that converts DXF to shapefile. In the script, first, DXF is converted to GRASS vector map format, then run the v.clean algorithm. After that polygonize algorithm is run, finally v.dissolve algorithm is run. My tool works correctly for most of the DXF files. But when I inserted the above-mentioned "a.dxf" as the input to my script, it gives "'NoneType' object has no attribute 'getitem' See log for more details" error.
When I use the same file in ArcGIS, it creates a polygon.
How should I overcome from this problem?