mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Application of patch from ticket #3259 - support WKT field in delimited text plugin. commit 0dc370a39c7349d85859fac462e91e346bf8fb83 Modified context help to reflect addition of WKT capability to the delimited text plugin. Tightened up the delimited text dialog a bit. commit 25484867621d6b4760952a8f00a07d253273ecfd Added *.wkt to file open filter commit 9f16a276b6b2ecbea2eebede50e3275a1df0389b Patch for providing wkt support in delimited text plugin git-svn-id: http://svn.osgeo.org/qgis/trunk@14781 c8812cc2-4d05-0410-92ff-de0c093fc19c
60 lines
1.9 KiB
Plaintext
60 lines
1.9 KiB
Plaintext
<h3>Delimited Text Layer Plugin</h3>
|
|
Loads and displays delimited text files containing x,y coordinates.
|
|
<p>
|
|
<p>
|
|
<a href="#re">Requirements</a><br/>
|
|
<a href="#example">Example of a valid text file</a><br/>
|
|
<a href="#wkt_example">Example of a valid text file with a WKT field</a><br/>
|
|
<a href="#notes">Notes</a><br/>
|
|
|
|
<a name="re">
|
|
<h4>Requirements</h4>
|
|
</a>
|
|
To view a delimited text file as layer, the text file must contain:
|
|
<ol>
|
|
<li>A delimited header row of field names. This must be the first line in the text file.</li>
|
|
<li>The header row must contain an X and Y field <em>or</em> a Well Known Text (WKT) field. These fields can have any name.</li>
|
|
<li>The <B>x</B> and <B>y</B> coordinates must be specified as a number. The coordinate system is not important.</li>
|
|
<li>A WKT field must be in the standard format.
|
|
</ol>
|
|
<a name="example">
|
|
<h4>Example of a valid text file with x and y fields</h4>
|
|
</a>
|
|
<tt>
|
|
X;Y;ELEV<br/>
|
|
-300120;7689960;13<br/>
|
|
-654360;7562040;52<br/>
|
|
1640;7512840;3<br/>
|
|
[...]<br/>
|
|
</tt>
|
|
<a name="wkt_example">
|
|
<h4>Example of a valid text file with a WKT field</h4>
|
|
</a>
|
|
<tt>
|
|
id|wkt<br/>
|
|
1|POINT(172.0702250 -43.6031036)<br/>
|
|
2|POINT(172.0702250 -43.6031036)<br/>
|
|
3|POINT(172.1543206 -43.5731302)<br/>
|
|
4|POINT(171.9282585 -43.5493308)<br/>
|
|
5|POINT(171.8827359 -43.5875983)<br/>
|
|
</tt>
|
|
<a name="notes">
|
|
<h4>Notes</h4>
|
|
</a>
|
|
<ol>
|
|
<li>The example text file:</li>
|
|
<ul>
|
|
<li> Uses <b>;</b> as delimiter. Any character can be used to delimit the fields.</li>
|
|
<li>The first row is the header row. It contains the fields X, Y and ELEV.</li>
|
|
<li>No quotes (") are used to delimit text fields.</li>
|
|
<li>The x coordinates are contained in the X field.</li>
|
|
<li>The y coordinates are contained in the Y field.</li>
|
|
</ul>
|
|
<li>The example text file with WKT:</li>
|
|
<ul>
|
|
<li>Has two fields defined in the header row: id and wkt.
|
|
<li>Uses <b>|</b> as a delimiter.</li>
|
|
<li>Specifies each point using the WKT notation
|
|
</ul>
|
|
</ol>
|