File: examples_pkascii2ogr.dox

package info (click to toggle)
pktools 2.6.7.6%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,056 kB
  • sloc: cpp: 33,451; xml: 10,955; python: 1,601; makefile: 142; sh: 58; ansic: 24
file content (7 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
\section examples_pkascii2ogr Examples of pkascii2ogr

Create a vector shape file (output.shp) from input ASCII file (input.txt). The coordinates x (longitude) and y (latitude) can be found in input.txt as columns 3 and 2 respectively (columns start counting from 0). The remaining 2 columns in input.txt are used as fields (attributes) of type integer: id (column 0) and label (column 3). The projection is set to lat lon (epsg:4326). 

\code
pkascii2ogr -i input.txt -o output.shp -x 2 -y 1 -n id -ot Integer -n label -ot Integer -a_srs epsg:4326
\endcode