EnglishFrenchSpanish

Ad


OnWorks favicon

kml2gmtgmt - Online in the Cloud

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

This is the command kml2gmtgmt 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


kml2gmt - Extract GMT table data from Google Earth KML files

SYNOPSIS


kml2gmt [ kmlfiles ] [ s|l|p ] [ [level] ] [ ] [ -bo<binary> ] [ -do<nodata> ] [ -:[i|o]
]

Note: No space is allowed between the option flag and the associated arguments.

DESCRIPTION


kml2gmt reads a Google Earth KML file and outputs a GMT table file. Only KML files that
contain points, lines, or polygons can be processed. This is a bare-bones operation that
aims to extract coordinates and possibly the name and description tags of each feature.
The main use intended is to capture coordinates modified in Google Earth and then reinsert
the modified data into the original GMT data file. For a more complete reformatting,
consider using ogr2ogr -f "GMT" somefile.gmt somefile.kml.

REQUIRED ARGUMENTS


None.

OPTIONAL ARGUMENTS


kmlfiles
Name of one or more KML files to work on. If not are given, then standard input is
read.

-Fs|l|p
Specify a particular feature type to output. Choose from points (s), line, or
polygon. By default we output all geometries.

-Z Output the altitude coordinates as GMT z coordinates [Default will output just
longitude and latitude].

-V[level] (more ...)
Select verbosity level [c].

-bo[ncols][type] (more ...)
Select native binary output.

-donodata (more ...)
Replace output columns that equal NaN with nodata.

-:[i|o] (more ...)
Swap 1st and 2nd column on input and/or output.

-^ or just -
Print a short message about the syntax of the command, then exits (NOTE: on Windows
use just -).

-+ or just +
Print an extensive usage (help) message, including the explanation of any
module-specific option (but not the GMT common options), then exits.

-? or no arguments
Print a complete usage (help) message, including the explanation of options, then
exits.

--version
Print GMT version and exit.

--show-datadir
Print full path to GMT share directory and exit.

EXAMPLES


To extract the lon,lat values from the KML file google.kml, try
gmt kml2gmt google.kml -V > google.txt

To separate the point and polygon geometries from the KML file google.kml, try
gmt kml2gmt google.kml -Fp -V > polygons.txt gmt kml2gmt google.kml -Fs -V > points.txt

Use kml2gmtgmt online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 2
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 3
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 4
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 5
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • 6
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • More »

Linux commands

Ad