[Qgis-user] Export WKT format

2014-10-20 Thread Andrew Gillett
It is possible to export in WKT format by copying then pasting into a text editor. However, there is no WKT option when exporting via Layer -> Save As. Is there a particular reason for this, or is there a development list where I could request this? _

Re: [Qgis-user] Export WKT format

2014-10-20 Thread Matthias Kuhn
Hi Andrew, WKT is a format for geometries and not a file type. Therefore it is not possible to offer a save as WKT just like that. You can however easily choose Comma Separated Value as export format and then choose AS_WKT in the Geometry combobox under layer options. Best regards, Matthias On

Re: [Qgis-user] Export WKT format

2014-10-20 Thread Andrew Gillett
Thanks for the info. I've just tried this and there appears to be a bug in it. I'm using the country border data from here: http://www.naturalearthdata.com/downloads/10m-cultural-vectors/ If, for example, I select Iceland and export as you suggested, the column for the polygon data is truncate

Re: [Qgis-user] Export WKT format

2014-10-20 Thread Alex Mandel
That sounds like it's hitting some sort of line limit. Might be a bug in OGR. You could try writing WKT to a column first, but it would have to be in a layer type that supports long text fields. That said WKT is not a great format for complex geometries. Perhaps you can tell us your goal and we ca

Re: [Qgis-user] Export WKT format

2014-10-20 Thread Alex Mandel
KML isn't a good choice, as it's always Lat/Lon WGS84. GML might work, but give GeoJson a shot first - it's simpler than GML to parse (actually little or no parsing required). Did you try ogr2ogr on the commandline to make sure it's not a bug in the QGIS writer for long lines? Thanks, Alex On 10

Re: [Qgis-user] Export WKT format

2014-10-20 Thread Junior Delaz
Hi, I think the WKT issue is an OGR one : https://trac.osgeo.org/gdal/ticket/5508 It should work in QGIS master 2014-10-20 20:31 GMT+02:00 Alex Mandel : > KML isn't a good choice, as it's always Lat/Lon WGS84. > GML might work, but give GeoJson a shot first - it's simpler than GML to > parse (act

Re: [Qgis-user] Export WKT format

2014-10-20 Thread Alex Mandel
That was my suspicion. Though since it's an OGR issue, you just need a newer GDAL/OGR not necessarily newer QGIS. Updating just GDAL/OGR depends on your operating system but should be possible on most systems. Thanks, Alex On 10/20/2014 12:34 PM, Junior Delaz wrote: > Hi, > I think the WKT issue