[GRASS-SVN] r54100 - grass/trunk/vector/v.out.postgis
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Nov 29 01:35:33 PST 2012
Author: martinl
Date: 2012-11-29 01:35:33 -0800 (Thu, 29 Nov 2012)
New Revision: 54100
Modified:
grass/trunk/vector/v.out.postgis/main.c
Log:
v.out.postgis: allow to export only maps in native formats
Modified: grass/trunk/vector/v.out.postgis/main.c
===================================================================
--- grass/trunk/vector/v.out.postgis/main.c 2012-11-29 09:01:40 UTC (rev 54099)
+++ grass/trunk/vector/v.out.postgis/main.c 2012-11-29 09:35:33 UTC (rev 54100)
@@ -90,6 +90,9 @@
if (ret == -1)
G_fatal_error(_("Unable to open vector map <%s>"),
params.input->answer);
+ if (Vect_maptype(&In) != GV_FORMAT_NATIVE)
+ G_fatal_error(_("Vector map <%s> is not in native format. Export cancelled."),
+ Vect_get_full_name(&In));
Vect_set_error_handler_io(&In, NULL);
if (params.olink->answer)
G_add_error_handler(link_handler, params.olink->answer);
More information about the grass-commit
mailing list