EnglishFrenchSpanish

OnWorks favicon

pkascii2ogr - Online in the Cloud

Run pkascii2ogr in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command pkascii2ogr that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


pkascii2ogr - program to create vector points or polygons from text file

SYNOPSIS


pkascii2ogr [-i input] [-o output] [-f OGRformat] [-x col] [-y col] [-line] [-n fieldname]
[-ot type] [-fs separator]

DESCRIPTION


pkascii2ogr creates a vector dataset (points or single polygon) from an ASCII textfile. A
better alternative is to use virtual vector datasets ⟨http://www.gdal.org/drv_vrt.html⟩ .
Specify the position of the vertices (x and y) in the columns defined by the options (-x
-y), starting from 0. The default is to use the first (-dx 0) and second (-dx 1) columns
for x and y respectvely. Specify the names and types of the remaining columns in your
input file via the option pairs -n and -ot respectively. The default field separator is
space.

OPTIONS


-i filename, --input filename
input ASCII file

-o filename, --output filename
Output file

-f OGRformat, --f OGRformat
Output sample file format

-x col, --x col
column number of x (0)

-y col, --y col
column number of y (1)

-l, --line
create OGRPolygon as geometry instead of points. Fields are taken from first point
and polygon is automatically closed (no need to repeat first point at last line).
(false: use OGRPoint)

-n fieldname, --name fieldname
Field names for the columns in the input ascii file

-ot type, --otype type
Field type (Real, Integer, String) for each of the fields as defined by name

-a_srs EPSG:number, --a_srs EPSG:number
Override the projection for the output file, use epsg: or Wkt string

-fs separator, --fs separator
field separator.

-v n, --verbose n
verbose (0)

EXAMPLE


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).

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

Use pkascii2ogr online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Avogadro
    Avogadro
    Avogadro is an advanced molecular
    editor designed for cross-platform use
    in computational chemistry, molecular
    modeling, bioinformatics, materials
    science and ...
    Download Avogadro
  • 2
    XMLTV
    XMLTV
    XMLTV is a set of programs to process
    TV (tvguide) listings and help manage
    your TV viewing, storing listings in an
    XML-based format. There are utilities to
    do...
    Download XMLTV
  • 3
    strikr
    strikr
    Strikr Free Software project. Artifacts
    released under a 'intent based'
    dual license: AGPLv3 (community) and
    CC-BY-NC-ND 4.0 international
    (commercial)...
    Download strikr
  • 5
    GIFLIB
    GIFLIB
    giflib is a library for reading and
    writing gif images. It is API and ABI
    compatible with libungif which was in
    wide use while the LZW compression
    algorithm was...
    Download GIFLIB
  • 6
    Alt-F
    Alt-F
    Alt-F provides a free and open source
    alternative firmware for the DLINK
    DNS-320/320L/321/323/325/327L and
    DNR-322L. Alt-F has Samba and NFS;
    supports ext2/3/4...
    Download Alt-F
  • More »

Linux commands

  • 1
    4s-queryJ
    4s-queryJ
    4s-query � Run SPARQL queries on a
    4store storage backend ...
    Run 4s-queryJ
  • 2
    4ti2-circuits
    4ti2-circuits
    4ti2 - software package for algebraic,
    geometric and combinatorial problems on
    linear spaces ...
    Run 4ti2-circuits
  • 3
    cpufreq-set
    cpufreq-set
    cpufreq-set - A small tool which allows
    to modify cpufreq settings. SYNTAX:
    cpufreq-set [options] DESCRIPTION:
    cpufreq-set allows you to modify cpufreq
    setting...
    Run cpufreq-set
  • 4
    cpufreqd-get
    cpufreqd-get
    cpufreqd-get - Issues "get" commands to
    cpufreqd. SYNTAX: cpufreqd-get [-l]
    PARAMETERS: -l list applied Profiles for
    all cpus. DESCRIPTION: cpufreqd-get
    issues...
    Run cpufreqd-get
  • 5
    gammu
    gammu
    gammu - Does some neat things with your
    cellular phone or modem. ...
    Run gammu
  • 6
    ganglia2pcp
    ganglia2pcp
    ganglia2pcp - import ganglia data and
    create a PCP archive ...
    Run ganglia2pcp
  • More »

Ad