ソースを参照

v.out.ogr: do not default format (Shapefile)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47963 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年 前
コミット
eaf0e8aedf
2 ファイル変更8 行追加4 行削除
  1. 7 2
      lib/vector/Vlib/write_nat.c
  2. 1 2
      vector/v.out.ogr/args.c

+ 7 - 2
lib/vector/Vlib/write_nat.c

@@ -101,7 +101,7 @@ static void V2__add_area_cats_to_cidx_nat(struct Map_info *Map, int area)
 }
 
 /*!
-  \brief Add line to topo file
+  \brief Add line to topo file (internal use only)
 
   Update areas. Areas are modified if: 
    
@@ -130,9 +130,14 @@ static void V2__add_area_cats_to_cidx_nat(struct Map_info *Map, int area)
     - attach new isle to area outside
     
     Note that 1) and 2) is done by the same code.
+
+    \param Map pointer to Map_info structure
+    \param line line id
+    \param points pointer to line_pnts structure (feature's geometry)
+    \param cats pointer to line_cats structure (feature's categories)
 */
 static void V2__add_line_to_topo_nat(struct Map_info *Map, int line,
-			    const struct line_pnts *points, const struct line_cats *cats)
+				     const struct line_pnts *points, const struct line_cats *cats)
 {
     int first, s, n, i;
     int type, node, next_line, area, side, sel_area, new_area[2];

+ 1 - 2
vector/v.out.ogr/args.c

@@ -44,9 +44,8 @@ void parse_args(int argc, char **argv,
     options->format->type = TYPE_STRING;
     options->format->required = YES;
     options->format->multiple = NO;
-    options->format->answer = "ESRI_Shapefile";
     options->format->options = OGR_list_write_drivers();
-    options->format->description = _("Vector data format to write");
+    options->format->description = _("Data format to write");
     
     options->dsco = G_define_option();
     options->dsco->key = "dsco";