Re: [gdal-dev] writing DWG/DXF

2010-03-18 Thread Reinaldo Escada Chohfi
Features can have attributes in DXF as BLOCKS. See the attached file for an example of a POINT feature with attributes asDXF. The same can be done for line, polyline, polygon, etc. Regards, Reinaldo > On Thu, Mar 18, 2010 at 6:47 AM, Frederik Ramm > wrote: >> Hi, >> >> Andreas Neumann wrote:

Re: [gdal-dev] writing DWG/DXF

2010-03-18 Thread Frank Warmerdam
On Thu, Mar 18, 2010 at 6:47 AM, Frederik Ramm wrote: > Hi, > > Andreas Neumann wrote: >> >> yes - it is a read/write driver. > > I have meanwhile checked out and tried it successfully. My use case is > taking shape files with geodata (road networks, railway, land use etc) and > converting them to

Re: [gdal-dev] writing DWG/DXF

2010-03-18 Thread Sunburned Surveyor
I meant to say "have the attribute values of the feature as the attributes of the blcok." Sorry about that. Landon On Thu, Mar 18, 2010 at 8:19 AM, Sunburned Surveyor wrote: > You could create each feature as a block, and then have the attributes > of the feature as the block. > > The other way

Re: [gdal-dev] writing DWG/DXF

2010-03-18 Thread Sunburned Surveyor
You could create each feature as a block, and then have the attributes of the feature as the block. The other way is to create text entities in your DXF file with the values of the attribute. Both of these solutions are possible, but I'm sure would require some extra programming. My CAD web page

Re: [gdal-dev] writing DWG/DXF

2010-03-18 Thread Frederik Ramm
Hi, Andreas Neumann wrote: yes - it is a read/write driver. I have meanwhile checked out and tried it successfully. My use case is taking shape files with geodata (road networks, railway, land use etc) and converting them to DXF for a client of mine. I created a set of DXF files from my sha

Re: [gdal-dev] writing DWG/DXF

2010-03-17 Thread Robert Coup
On Thu, Mar 18, 2010 at 1:17 AM, Frederik Ramm wrote: > > "The ability to write DXF and DWG is only available when OGR is linked > against the DWGdirect library provided by the Open Design Alliance. Note > that the DWGdirect library is not open source, though the license terms are > not terribly d

Re: [gdal-dev] writing DWG/DXF

2010-03-17 Thread Andreas Neumann
Hi, yes - it is a read/write driver. Since there are so many dxf variations out there reading may not be supported for all files. Also there are some issues with reading (e.g. block references, maybe some text issues). Curves and Splines are segmented on reading the dxf. An application that r

Re: [gdal-dev] writing DWG/DXF

2010-03-17 Thread bartvde
Hi, I believe it also writes: http://svn.osgeo.org/gdal/trunk/gdal/ogr/ogrsf_frmts/dxf/drv_dxf.html "DXF files are written in AutoCAD 2000 format." Best regards, Bart > Bart, > > bart...@osgis.nl wrote: >> there is a new driver that does not have this dependency: >> http://fwarmerdam.blogspot.

Re: [gdal-dev] writing DWG/DXF

2010-03-17 Thread Frederik Ramm
Bart, bart...@osgis.nl wrote: there is a new driver that does not have this dependency: http://fwarmerdam.blogspot.com/2009/12/ogr-dxf-driver.html Thanks for pointing this out, I was not aware of the development. But that is a read-only driver, is it not? Bye Frederik _

Re: [gdal-dev] writing DWG/DXF

2010-03-17 Thread bartvde
Hi, there is a new driver that does not have this dependency: http://fwarmerdam.blogspot.com/2009/12/ogr-dxf-driver.html Best regards, Bart > Hi, > > I want to convert shape files into DWG or DXF. (And I do not have > ArcView, nor Windows, available.) > > I've been reading the lists and fou

[gdal-dev] writing DWG/DXF

2010-03-17 Thread Frederik Ramm
Hi, I want to convert shape files into DWG or DXF. (And I do not have ArcView, nor Windows, available.) I've been reading the lists and found information on a "spike" branch of ogr2ogr which is supposed to be able to write DWG/DXF files. In the readme it says "The ability to write DXF a