[gdal-dev] ogr2ogr dxf extents

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] ogr2ogr dxf extents

andrew terry
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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: ogr2ogr dxf extents

Alan Thomas
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
<[hidden email]> 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
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/gdal-dev



--
Alan Thomas
Software Developer
ThinkSpatial
http://www.thinkspatial.com.au
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: ogr2ogr dxf extents

andrew terry
Thanks Alan, i was beginning to think that was the case but good to know i'm
not missing anything.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev