소스 검색

v.convert.all moved to addons

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64574 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 년 전
부모
커밋
3e729aa17e
4개의 변경된 파일0개의 추가작업 그리고 106개의 파일을 삭제
  1. 0 1
      scripts/Makefile
  2. 0 7
      scripts/v.convert.all/Makefile
  3. 0 43
      scripts/v.convert.all/v.convert.all.html
  4. 0 55
      scripts/v.convert.all/v.convert.all.py

+ 0 - 1
scripts/Makefile

@@ -49,7 +49,6 @@ SUBDIRS = \
 	r3.in.xyz \
 	v.build.all \
 	v.centroids \
-	v.convert.all \
 	v.db.addcolumn \
 	v.db.addtable \
 	v.db.join \

+ 0 - 7
scripts/v.convert.all/Makefile

@@ -1,7 +0,0 @@
-MODULE_TOPDIR = ../..
-
-PGM = v.convert.all
-
-include $(MODULE_TOPDIR)/include/Make/Script.make
-
-default: script

+ 0 - 43
scripts/v.convert.all/v.convert.all.html

@@ -1,43 +0,0 @@
-<h2>DESCRIPTION</h2>
-
-<em>v.convert.all</em> converts all GRASS 5.0/5.3/5.4 vectors in the current
-mapset into GRASS 7 vectors.
-
-<h2>NOTES</h2>
-
-Vector maps from 5.0/5.3/5.4 and 7 do not interfere. They are stored in different 
-directories, so the same names can be kept. Old vector maps can be listed with
-<em>g.list oldvect</em>.
-
-<p>To convert back from 7 to 6 vector format, use <em>v.build</em> in GRASS 6.
-<p>To convert back from 6.0 into the 5.0/5.3/5.4 vector format,
-use <em>v.out.ogr</em> (to SHAPE format) and then <em>v.in.shape</em>
-in the old GRASS program.
-<p>
-As this GRASS version uses SQL for attribute management, there are
-some <a href=sql.html>SQL restrictings concerning the file names</a>.
-This script changes dots (e.g. "foo.bar") in old vector map names into
-underline(s) (e.g. "foo_bar").
-
-<h2>EXAMPLE</h2>
-
-To convert all old vector maps in the current mapset to the new vector format:
-<p><div class="code"><pre>
-v.convert.all
-</pre></div>
-
-<h2>SEE ALSO</h2>
-
-<em>
-<a href="g.list.html">g.list</a>,
-<a href="v.convert.html">v.convert</a>,
-<a href="v.out.ascii.html">v.out.ascii</a>,
-<a href="v.out.ogr.html">v.out.ogr</a>
-</em>
-
-
-<h2>AUTHOR</h2>
-
-Markus Neteler, ITC-Irst, Trento, Italy
-
-<p><i>Last changed: $Date$</i>

+ 0 - 55
scripts/v.convert.all/v.convert.all.py

@@ -1,55 +0,0 @@
-#!/usr/bin/env python
-#
-############################################################################
-#
-# MODULE:	v.convert.all
-# AUTHOR(S):	Markus Neteler, converted to Python by Glynn Clements
-# PURPOSE:	converts all old GRASS < V5.7 vector maps to current format
-#		in current mapset
-# COPYRIGHT:	(C) 2004, 2008 by the GRASS Development Team
-#
-#		This program is free software under the GNU General Public
-#		License (>=v2). Read the file COPYING that comes with GRASS
-#		for details.
-#
-#############################################################################
-
-#%module
-#% description: Converts all older versions of GRASS vector maps in current mapset to current format.
-#% keyword: vector
-#% keyword: import
-#% keyword: conversion
-#%end
-
-import sys
-from grass.script import core as grass
-from grass.exceptions import CalledModuleError
-
-
-def main():
-    env = grass.gisenv()
-    mapset = env['MAPSET']
-    converted = 0
-    ret = 0
-    for vect in grass.list_grouped('oldvect')[mapset]:
-	inmap = "%s@%s" % (vect, mapset)
-	outmap = vect.replace(".", "_")
-        try:
-            grass.run_command("v.convert", input=inmap, output=outmap)
-        except CalledModuleError:
-            grass.warning(_("Error converting map <%s> to <%s>") % (inmap, outmap))
-            ret = 1
-        else:
-            converted += 1
-
-	if converted < 1:
-	    grass.warning(_("No vector maps converted as no old vector maps present in current mapset."))
-	else:
-	    grass.message(_("Total %u vector maps in current mapset converted.") % converted)
-	    grass.message(_("Please verify new vector map(s) before deleting old vector map(s)."))
-
-	sys.exit(ret)
-
-if __name__ == "__main__":
-    options, flags = grass.parser()
-    main()