[gdal-dev] ogr2ogr dxf extents

Alan Thomas athomas at thinkspatial.com.au
Tue Feb 5 01:35:07 PST 2019


Hi Andrew,

No such option exists in GDAL's DXF driver. Extents are calculated
according to the overall bounding envelope of the geometries.

DXF files are not difficult to manipulate as plain text, so if you
wish to modify the extent values (which are conveniently stored very
close to the beginning of the file in the $EXTMIN and $EXTMAX
variables) it should not be terribly difficult to write a simple
Python (etc) script to do this.

Alan


On Thu, 31 Jan 2019 at 01:19, andrew terry
<andrew.terry at centremaps.co.uk> wrote:
>
> Hi,
>
> Using ogr2ogr -f DXF, is there a dsco (or other) variable to set the initial
> zoom extents when the resulting cad file is opened?
>
> 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