[GRASS-SVN] r54099 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 29 01:01:41 PST 2012


Author: martinl
Date: 2012-11-29 01:01:40 -0800 (Thu, 29 Nov 2012)
New Revision: 54099

Modified:
   grass/trunk/lib/vector/Vlib/write_pg.c
Log:
vlib: allow writting PostGIS topological elements on level 1


Modified: grass/trunk/lib/vector/Vlib/write_pg.c
===================================================================
--- grass/trunk/lib/vector/Vlib/write_pg.c	2012-11-29 08:59:44 UTC (rev 54098)
+++ grass/trunk/lib/vector/Vlib/write_pg.c	2012-11-29 09:01:40 UTC (rev 54099)
@@ -94,12 +94,10 @@
             return -1;
     }
 
-    if (pg_info->toposchema_name) {
-        G_warning(_("PostGIS topology not supported on level 1"));
-        return -1;
+    if (!pg_info->toposchema_name) { /* simple features */
+        return write_line_sf(Map, type, &points, 1, cats);
     }
-    
-    return write_line_sf(Map, type, &points, 1, cats);
+    return write_line_tp(Map, type, FALSE, points, cats);
 #else
     G_fatal_error(_("GRASS is not compiled with PostgreSQL support"));
     return -1;



More information about the grass-commit mailing list