Skip to main content

I drape various geometries on a DEM I create from SRTM data and want to write this to a DXF file.

This works fine for all kinds of geometries except for filled polygons of type autocad_hatch.

Documentations says:

... their geometry must be 2D or planar 3D with a constant Z, which can be stored as an elevation value.

The phrasing "which can be stored as an elevation value" is not really clear to me as it is not defined how to do that.

 

I have tried several things to force these features to 3D with constant Z value

  • BoundsExtractor+3DForcer to _minz
  • BoundsExtractor+2DForcer+3DForcer to _minz
  • BoundsExtractor+2DForcer+setting attributes elevation, autocad_elevation, autocad_hatch_elevation to _minz

... but always get the error message about inconsistent Z values and Z being dropped.

Nothing seems to allow me to move these hatches to their desired height.

What am I missing here ?

In a follow up ...

If I use BoundsExtractor+3DForcer(_minZ)+FaceReplacer I am able to write the horizontal surfaces to DXF in the assigned minimum height of each polygon.

I am not sure, what happens to the color filling, which should be done by the autocad_hatch attributes.


Reply