[GRASS-SVN] r51713 - grass-addons/grass6/vector/v.out.kml
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 24 12:47:46 EDT 2012
Author: gisix
Date: 2012-05-24 09:47:45 -0700 (Thu, 24 May 2012)
New Revision: 51713
Added:
grass-addons/grass6/vector/v.out.kml/description.html
Removed:
grass-addons/grass6/vector/v.out.kml/grass.smlogo.gif
grass-addons/grass6/vector/v.out.kml/index.html
Modified:
grass-addons/grass6/vector/v.out.kml/v.out.kml.sh
Log:
Editing of v.out.kml documentation
Copied: grass-addons/grass6/vector/v.out.kml/description.html (from rev 51711, grass-addons/grass6/vector/v.out.kml/index.html)
===================================================================
--- grass-addons/grass6/vector/v.out.kml/description.html (rev 0)
+++ grass-addons/grass6/vector/v.out.kml/description.html 2012-05-24 16:47:45 UTC (rev 51713)
@@ -0,0 +1,93 @@
+<h2>DESCRIPTION</h2>
+
+<i>v.out.kml</i> creates KML files from GRASS vector data,
+including color, fillcolor, transparency and icons.<br>
+
+If no parameters are provided, <i>v.out.kml</i> will ask for the source vector layer and all other parameters. <br>
+The script allows to select wether polygons will be reduced to lines or kept as polygons.<br>
+
+Transparency values can be set seperately for both lines and polygon area fills.<br>
+
+Icons for point data can be referenced by ID numbers from the Google Earth web site or by individual URLs.<br>
+
+The color values can also be randomized. The random-color-flag overrides any additional color settings.<br>
+
+
+<h3>Flags</h3>
+
+<dl>
+<dt><b><i> -l </i></b></dt><dd> Force line-vector export: Areas are exported as lines/polylines
+(default) without a fillcolor. </dd>
+<dt><b><i> -y</i></b></dt><dd> Force polygon export: Areas are exported as polygons with a fillcolor
+ and fill-transparency. </dd>
+
+<dt><b><i> -p</i></b></dt><dd> Point-vector (sites) export: Point data will be exported. </dd>
+
+<dt><b><i> -r </i></b></dt><dd> Random colors: All line and area colors (if needed) are set to
+random values </dd>
+
+</dl>
+<h3>Parameters</h3>
+
+<dl><dt><b><i>vector</i></b></dt><dd>Vector input map.
+</dd>
+<dt><b><i>output</i></b></dt><dd> Name/path of kml output. </dd>
+
+<dt><b><i>ogrpath</i></b></dt><dd> optional path to ogr2ogr. </dd>
+<dt><b><i>color</i></b></dt><dd> integer triplet for
+line color (blue:green:red 00:00:00-255:255:255). </dd>
+<dt><b><i>transparency</i></b></dt><dd> integer for vector line
+transparency (0=invisible 255=opaque) Standard: 255. </dd>
+<dt><b><i>fcolor</i></b></dt><dd> integer triplet for polygon fill
+color (blue:green:red 00:00:00-255:255:255). </dd>
+<dt><b><i>ftransparency</i></b></dt><dd> integer for polygon transparency
+(00=invisible 255=opaque)
+ Standard: 255. </dd>
+<dt><b><i>size</i></b></dt><dd>width of the vector lines
+(default is 1). </dd>
+<dt><b><i>iconcode</i></b></dt><dd> Select an icons number within its
+palette for point-vectors. Options: 1-45. </dd>
+<dt><b><i>iconpalette</i></b></dt><dd> Select a KML palette of
+icons for point-vectors. Options: 1-20 . </dd>
+<dt><b><i>iconcolor</i></b></dt><dd> hexcode color triplet for point-vectors
+(blue:green:red 00:00:00-255:255:255) Standard: 00:200:00. </dd>
+<dt><b><i>icontransparency</i></b></dt><dd> integer for point-vector
+transparency (0=invisible 255=opaque 0-255) Standard: 255. </dd>
+<dt><b><i>iconurl</i></b></dt><dd> Provide a URL pointing to a symbol for point-vectors
+. </dd>
+<dt><b><i>linecolumn</i></b></dt><dd>The name of a database column
+providing the line color as an integer triplet (blue:green:red 0:0:0 - 255:255:255) </dd>
+<dt><b><i>linetranscolumn</i></b></dt><dd>The name of a database column providing the line
+transparency as an integer value (0-255 0=invisible 255=opaque)</dd>
+<dt><b><i>fillcolumn</i></b></dt><dd>The name of a database column
+providing the line color as an integer triplet (blue:green:red 0:0:0 - 255:255:255) </dd>
+<dt><b><i>filltranscolumn</i></b></dt><dd>The name of a database column providing the line
+transparency as an integer value (0-255 0=invisible 255=opaque)</dd>
+
+
+</dl>
+
+
+<h2>Notes</h2>
+The script only works for data layers of the current mapset. If "user" is
+the current mapset, trying to access vectors from other mapsets (like
+"PERMANENT") will cause ungraceful script termination.<br>
+
+The scrip requires an installation of GDAL/OGR supporting GML (Geographic Markup Language).
+If for some reason this is not available, or the local GDAL/OGR does not provide GML, install
+FWTools from http://fwtools.maptools.org. They provide GML support.
+To point the script to such a FWtools installation, use the ogrpath-parameter (pointing to ogr2ogr in FWtools).
+Once started with this option, the script will remember the path for the current mapset, so this ordeal is only necessary once.
+
+<h2>To be done</h2> Currently lacking database support for point data (color/transparency)
+<br>
+The same random value will be applied to all instances of a [transparency|geometry]-class.<br>
+There might be a slight offset between the generic EPSG 4326 and the "lat
+lon" used by Google Earth. The author would be grateful for feedback on this
+issue.<br>
+
+
+
+<h2>AUTHOR</h2>
+<p>Peter Loewe, GISIX.com </p>
+
Deleted: grass-addons/grass6/vector/v.out.kml/grass.smlogo.gif
===================================================================
(Binary files differ)
Deleted: grass-addons/grass6/vector/v.out.kml/index.html
===================================================================
--- grass-addons/grass6/vector/v.out.kml/index.html 2012-05-24 16:45:50 UTC (rev 51712)
+++ grass-addons/grass6/vector/v.out.kml/index.html 2012-05-24 16:47:45 UTC (rev 51713)
@@ -1,127 +0,0 @@
-#<html><head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
-<title>v.out.kml 101</title></head>
-
-<body bgcolor="#ffffff">
-
-<p><img src="./grass.smlogo.gif"> </p>
-
-<hr size="6" noshade="noshade">
-
-<h2>NAME</h2>
-
-<p><b><i>v.out.kml</i></b> - A shell script to generate KML files (Google Earth) from GRASS vector layers. <br>
-<i>(GRASS 6 Vector Program)</i> </p>
-
-<h2>SYNOPSIS</h2>
-
-<p><b>v.out.kml</b> <br>
-<b>v.out.kml </b> lots of flags and parameters... use "v.out.kml help" for details <br>
-
-
-
-
-<h2>DESCRIPTION</h2>
-
-<p><i>v.out.kml</i> creates KML files from GRASS vector data,
-including color, fillcolor, transparency and icons.<br>
-If no parameters are provided, <i>v.out.kml</i> will ask for the source vector layer and all other parameters. <br>
-The script allows to select wether polygons will be reduced to lines or kept as polygons.<br>
-Transparency values can be set seperately for both lines and polygon area fills.<br>
-Icons for point data can be referenced by ID numbers from the Google Earth web site or by individual URLs.<br>
-The color values can also be randomized. The random-color-flag overrides any additional color settings.<br>
-</p>
-
-<h3>Flags</h3>
-
-<dl>
-<dt><b><i> -l </i></b></dt><dd> Force line-vector export: Areas are exported as lines/polylines
-(default) without a fillcolor. </dd>
-<dt><b><i> -y</i></b></dt><dd> Force polygon export: Areas are exported as polygons with a fillcolor
- and fill-transparency. </dd>
-
-<dt><b><i> -p</i></b></dt><dd> Point-vector (sites) export: Point data will be exported. </dd>
-
-<dt><b><i> -r </i></b></dt><dd> Random colors: All line and area colors (if needed) are set to
-random values </dd>
-
-</dl>
-<h3>Parameters</h3>
-
-<dl><dt><b><i>vector</i></b></dt><dd>Vector input map.
-</dd>
-<dt><b><i>output</i></b></dt><dd> Name/path of kml output. </dd>
-
-<dt><b><i>ogrpath</i></b></dt><dd> optional path to ogr2ogr. </dd>
-<dt><b><i>color</i></b></dt><dd> integer triplet for
-line color (blue:green:red 00:00:00-255:255:255). </dd>
-<dt><b><i>transparency</i></b></dt><dd> integer for vector line
-transparency (0=invisible 255=opaque) Standard: 255. </dd>
-<dt><b><i>fcolor</i></b></dt><dd> integer triplet for polygon fill
-color (blue:green:red 00:00:00-255:255:255). </dd>
-<dt><b><i>ftransparency</i></b></dt><dd> integer for polygon transparency
-(00=invisible 255=opaque)
- Standard: 255. </dd>
-<dt><b><i>size</i></b></dt><dd>width of the vector lines
-(default is 1). </dd>
-<dt><b><i>iconcode</i></b></dt><dd> Select an icons number within its
-palette for point-vectors. Options: 1-45. </dd>
-<dt><b><i>iconpalette</i></b></dt><dd> Select a KML palette of
-icons for point-vectors. Options: 1-20 . </dd>
-<dt><b><i>iconcolor</i></b></dt><dd> hexcode color triplet for point-vectors
-(blue:green:red 00:00:00-255:255:255) Standard: 00:200:00. </dd>
-<dt><b><i>icontransparency</i></b></dt><dd> integer for point-vector
-transparency (0=invisible 255=opaque 0-255) Standard: 255. </dd>
-<dt><b><i>iconurl</i></b></dt><dd> Provide a URL pointing to a symbol for point-vectors
-. </dd>
-<dt><b><i>linecolumn</i></b></dt><dd>The name of a database column
-providing the line color as an integer triplet (blue:green:red 0:0:0 - 255:255:255) </dd>
-<dt><b><i>linetranscolumn</i></b></dt><dd>The name of a database column providing the line
-transparency as an integer value (0-255 0=invisible 255=opaque)</dd>
-<dt><b><i>fillcolumn</i></b></dt><dd>The name of a database column
-providing the line color as an integer triplet (blue:green:red 0:0:0 - 255:255:255) </dd>
-<dt><b><i>filltranscolumn</i></b></dt><dd>The name of a database column providing the line
-transparency as an integer value (0-255 0=invisible 255=opaque)</dd>
-
-
-</dl>
-
-
-<h2>Notes</h2>
-<p>The script only works for data layers of the current mapset. If "user" is
-the current mapset, trying to access vectors from other mapsets (like
-"PERMANENT") will cause ungraceful script termination.</p><br>
-
-<!-- <p>Worldwind can import KML files, yet it can (currently) only display icons
-(aka point data). Line vectors, polygons etc are (currently) only supported
-by Google Earth. </p><br> -->
-<p>The scrip requires an installation of GDAL/OGR supporting GML (Geographic Markup Language).
-If for some reason this is not available, or the local GDAL/OGR does not provide GML, install
-the famous FWTools from http://fwtools.maptools.org. They provide GML support.
-To point the script to such a FWtools installation, use the ogrpath-parameter (pointing to ogr2ogr in FWtools).
-Once started with this option, the script will remember the path for the current mapset, so this ordeal is only necessary once. </p><br>
-
-<h2>To be done</h2><br><p> Currently lacking database support for point data (color/transparency)</p>
-<br>
-<p>The same random value will be applied to all instances of a [transparency|geometry]-class.</p><br>
-<p>This is a humble shell-script. It will be certainly out-performed by the mightily improved next version in C.</p><br>
-<p>There might be a slight offset between the generic EPSG 4326 and the "lat
-lon" used by Google Earth. The author would be grateful for feedback on this
-issue.<p><br>
-<p>
-...
-</p>
-
-
-<h2>DOWNLOAD THE CODE</h2>
-
-<p><a
-href="http://grasslab.gisix.com/scripts/v.out.kml/v.out.kml.sh">v.out.kml</a> </p>
-
-<h2>AUTHOR</h2>
-
-<p>Peter Löwe </p>
-
-<p><i>Last changed: $Date: 2007/17/06 $</i> </p>
-</body></html>
\ No newline at end of file
Modified: grass-addons/grass6/vector/v.out.kml/v.out.kml.sh
===================================================================
--- grass-addons/grass6/vector/v.out.kml/v.out.kml.sh 2012-05-24 16:45:50 UTC (rev 51712)
+++ grass-addons/grass6/vector/v.out.kml/v.out.kml.sh 2012-05-24 16:47:45 UTC (rev 51713)
@@ -1,4 +1,4 @@
-#!/bin/sh
+q#!/bin/sh
############################################################################
#
More information about the grass-commit
mailing list