wavded / ogre

ogr2ogr geojson-focused web client
http://ogre.adc4gis.com
MIT License
266 stars 79 forks source link

DXF to GeoJson not all layers converted #80

Closed pungiish closed 4 years ago

pungiish commented 4 years ago

When opening the DXF in QCAD, I am shown more layers than when opening the converted GeoJson file.

I.E. this layer is shown and converted correctly:

$_S-2CHECK
 70
     1
 62
    -4
420
    65535
  6
Continuous
370
    -3
390
43134
347
4316A
348
0
1001
AcAecLayerStandard
1000

1000

1001
AcCmTransparency
1071
        0
  0
LAYER
  5
43479
330
43128
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
  2

this is in converted file:

{"type":"Feature","properties":{"Layer":"$_S-2CHECK","SubClasses":"AcDbEntity:AcDbBlockReference","ExtendedEntity":null,"Linetype":null,"EntityHandle":"2F34C","Text":null},"geometry":{"type":"GeometryCollection","geometries":[{"type":"LineString","coordinates": ...

However, layers like these are getting dropped during the conversion:

_Fire Protection_CEILING2
 70
     0
 62
     8
420
  8421504
  6
Continuous
370
    -3
390
43134
347
4316A
348
0
1001
AcAecLayerStandard
1000

1000
Lights and Fixtures 
1001
AcXRefLayerPropertyOverride
1071
      256
  0
LAYER
  5
4324E
330
43128
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
  2

Any ideas why and what I could do to fix it?

vfonsecaz commented 4 years ago

can you provide the full dxf?

pungiish commented 4 years ago

Hey, yes, but I can't post it on here. Can I send it to you somewhere? If you could look at it, that'd be great!

vfonsecaz commented 4 years ago

send it to my email vfonsecaz at gmail dot com

pungiish commented 4 years ago

Ok. Thank you.

pungiish commented 4 years ago

There seemed to be a problem with the .DXF file.