[Qgis-user] Import lines from cvs

Joris Hintjens jorishin at gmail.com
Fri Jan 8 11:40:12 PST 2016


Thanks again for your help, Nicolas.

In my sample, if you look closer, you’ll see that I tried both formats. DMS and decimal degrees. (see the two “LINESTRING”s headers) Both no result.
Maybe the problem is that the comma’s from the cvs conflict with the commas from the nodes separator in WKT?
I also see that you have no East West, North ofSouth markings. So I should convert to neg for West and South? 

Joris



> Op 8 jan. 2016, om 17:17 heeft Nicolas Cadieux <nicolas.cadieux at archeotec.ca> het volgende geschreven:
> 
> Hi,
> I looked at your file and that is the problem.
> 
> 
> "ROUTE","Count - ROUTE","GEOMDMS","GEOMDEC","Xdep","Ydep","Xarr","Yarr"
> "AT888_BEANR",1,"LINESTRING (015°31'E 48°12'N, 004°25'E 51°13'N)","LINESTRING (015.51E 48.20N, 004.41E 51.21N)","015°31'E","48°12'N","004°25'E","51°13'N"
> 
> I don't think qgis will understand "015°31'E". Change that to Decimals Degrees.  Then the format must be as follow...
> 
> This will work
> 
> id; ROUTE;Count_ROUTE;wkt;data
> 1;AT888_BEANR;LINESTRING(015.5 48.5 , 004.5 51.5);more data
> 
> 
> 
> Notice: 1 linestring per line of data, ";" as a separator between field use DD, space between x and y and, points for decimal,  commas between points in the WKT column ";LINESTRING(015.5 48.5 , 004.5 51.5);".  (I use dummy x and y)
> 
> More info:  http://gis.stackexchange.com/questions/34342/whats-the-proper-format-for-wkt-linestrings-when-importing-into-qgis <http://gis.stackexchange.com/questions/34342/whats-the-proper-format-for-wkt-linestrings-when-importing-into-qgis>
> https://en.wikipedia.org/wiki/Well-known_text <https://en.wikipedia.org/wiki/Well-known_text>
> 
> Good luck
> Nicolas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160108/52613350/attachment.html>


More information about the Qgis-user mailing list