[GRASS-SVN] r58364 - grass/trunk/vector/v.external.out

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 3 02:48:03 PST 2013


Author: martinl
Date: 2013-12-03 02:48:03 -0800 (Tue, 03 Dec 2013)
New Revision: 58364

Modified:
   grass/trunk/vector/v.external.out/link.c
   grass/trunk/vector/v.external.out/v.external.out.html
Log:
v.external.out: document option=simple_feature=yes


Modified: grass/trunk/vector/v.external.out/link.c
===================================================================
--- grass/trunk/vector/v.external.out/link.c	2013-12-03 10:47:15 UTC (rev 58363)
+++ grass/trunk/vector/v.external.out/link.c	2013-12-03 10:48:03 UTC (rev 58364)
@@ -13,7 +13,7 @@
 {
     int use_ogr;
     char *filename, *pg_schema, *pg_fid, *pg_geom_name, *dsn;
-    char *pg_spatial_index, *pg_primary_key, *pg_topo;
+    char *pg_spatial_index, *pg_primary_key, *pg_topo, *pg_sf;
     FILE *fp;
     
     struct Key_Value *key_val;
@@ -99,6 +99,10 @@
         if (pg_topo) {
 	    check_option_on_off("topology", &pg_topo);
 	}
+        pg_sf = get_option_pg(options, "simple_feature");
+        if (pg_sf) {
+	    check_option_on_off("simple_feature", &pg_topo);
+	}
     }
     /* add key/value items */
     if (dsn) {
@@ -127,6 +131,8 @@
 	    G_set_key_value("primary_key", pg_primary_key, key_val);
 	if (pg_topo)
 	    G_set_key_value("topology", pg_topo, key_val);
+	if (pg_sf)
+	    G_set_key_value("simple_feature", pg_topo, key_val);
     }
     
     /* save file - OGR or PG */

Modified: grass/trunk/vector/v.external.out/v.external.out.html
===================================================================
--- grass/trunk/vector/v.external.out/v.external.out.html	2013-12-03 10:47:15 UTC (rev 58363)
+++ grass/trunk/vector/v.external.out/v.external.out.html	2013-12-03 10:48:03 UTC (rev 58364)
@@ -66,13 +66,15 @@
   see <a href="http://www.postgis.net/docs/manual-2.0/CreateTopology.html">CreateTopology</a>
   function for defails, default: <tt>0</tt></li>
   <li><tt>TOPO_GEO_ONLY=YES|NO</tt> - store in PostGIS Topology schema
-  only data relevant to Topo-Geo data model (relevant only
-  for <tt>TOPOLOGY=YES</tt>), default: <tt>NO</tt></li>
+  only data relevant to Topo-Geo data model, default: <tt>NO</tt></li>
+  <li><tt>SIMPLE_FEATURE=YES|NO</tt> - build simple features geometry
+  in <tt>GEOMETRY_NAME</tt> column from topogeometry data, default:
+  NO</li>
 </ul>
 
 <p>
 Creation <b>options</b> are comma-separated pairs
-(<tt>key=value</tt>), the options are case-insensitive.
+(<tt>key=value</tt>), the options are case-insensitive, eg. <tt>options="SCHEMA=myschema,FID=cat"</tt>.
 
 <h2>EXAMPLES</h2>
 



More information about the grass-commit mailing list