[gdal-dev] ogr2ogr dxf multilinestring as block

Alan Thomas athomas at thinkspatial.com.au
Tue Feb 5 01:55:57 PST 2019


Hi Andrew,

I'm assuming here that you are converting from another format to DXF.

The writer ignores DXF_INLINE_BLOCKS; this configuration option is
only used by the reader. To create blocks, you must place the features
that will compose the block on the "blocks" layer. (Clearly the format
that you are converting from must support multiple layers.) Be sure to
use the Block field instead of BlockName in GDAL 2.3+. Then, on the
"entities" layer, place POINT geometries, with the Block field
likewise set, at the positions where you want the block to be
inserted.

Alan


On Fri, 1 Feb 2019 at 01:35, andrew terry <andrew.terry at centremaps.co.uk> wrote:
>
> Hi,
>
> As per the documentation, i'm seeing mulitlinestring being split up into
> LWPOLYLINE elements.
>
> I'd like to make them a block and have tried adding a "blockname" column and
> given each multilinestring a unique reference.
>
> I've also tried the DXF_INLINE_BLOCKS set to FALSE option.
>
> Is this possible and if so, is there an example anywhere?
>
> Thanks
>
> Andy
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev



-- 
Alan Thomas
Software Developer
ThinkSpatial
http://www.thinkspatial.com.au


More information about the gdal-dev mailing list