Browse Source

v.import: synchronize extent option name with r.import

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66451 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 years ago
parent
commit
be10fc0249
2 changed files with 7 additions and 7 deletions
  1. 1 1
      scripts/v.import/v.import.html
  2. 6 6
      scripts/v.import/v.import.py

+ 1 - 1
scripts/v.import/v.import.html

@@ -23,7 +23,7 @@ manually reprojected to the target location.
 
 <div class="code"><pre>
 # import SHAPE file at full extent and reproject to current location projection
-v.import input=research_area.shp output=research_area extents=input
+v.import input=research_area.shp output=research_area extent=input
 </pre></div>
 
 <h2>SEE ALSO</h2>

+ 6 - 6
scripts/v.import/v.import.py

@@ -43,12 +43,12 @@
 #% guisection: Output
 #%end
 #%option
-#% key: extents
+#% key: extent
 #% type: string
 #% options: input,region
 #% answer: input
-#% description: Ouput vector map extents
-#% descriptions: input;extents of input map;region;extents of current region
+#% description: Ouput vector map extent
+#% descriptions: input;extent of input map;region;extent of current region
 #% guisection: Output
 #%end
 #%option
@@ -108,7 +108,7 @@ def main():
     layers = options['layer']
     
     vflags = None
-    if options['extents'] == 'region':
+    if options['extent'] == 'region':
         vflags = 'r'
     vopts = {}
     if options['encoding']:
@@ -172,7 +172,7 @@ def main():
     if grass.parse_command('g.proj', flags = 'g')['name'] == 'xy_location_unprojected':
         grass.fatal(_("Coordinate reference system not available for input <%s>") % GDALdatasource)
     
-    if options['extents'] == 'region':
+    if options['extent'] == 'region':
         # switch to target location
         os.environ['GISRC'] = str(tgtgisrc)
 
@@ -214,7 +214,7 @@ def main():
        grass.find_file(output, element='vector', mapset='.')['mapset']:
         grass.fatal(_("option <%s>: <%s> exists.") % ('output', output))
     
-    if options['extents'] == 'region':
+    if options['extent'] == 'region':
         grass.run_command('g.remove', type = 'vector', name = vreg,
                           flags = 'f', quiet = True)