[GRASS-SVN] r34151 - grass/branches/develbranch_6/scripts/v.out.gpsbabel

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 3 06:31:42 EST 2008


Author: hamish
Date: 2008-11-03 06:31:42 -0500 (Mon, 03 Nov 2008)
New Revision: 34151

Modified:
   grass/branches/develbranch_6/scripts/v.out.gpsbabel/v.out.gpsbabel
Log:
fix +wktext comment, need to copy over DB to reproj map: only works from current mapset

Modified: grass/branches/develbranch_6/scripts/v.out.gpsbabel/v.out.gpsbabel
===================================================================
--- grass/branches/develbranch_6/scripts/v.out.gpsbabel/v.out.gpsbabel	2008-11-03 10:04:48 UTC (rev 34150)
+++ grass/branches/develbranch_6/scripts/v.out.gpsbabel/v.out.gpsbabel	2008-11-03 11:31:42 UTC (rev 34151)
@@ -262,6 +262,24 @@
 fi
 
 
+# don't v.db.connect directly as source table will be removed with
+# temporary map in that case. So we copy it first but this fails when
+# the map (ie table) is in another mapset.  ?
+db.copy from_table="$INMAP" to_table="tmp_vogb_epsg4326_$$"
+if [ $? -ne 0 ] ; then
+    g.message -e "Error copying temporary DB"
+    cleanup
+    exit 1
+fi
+
+v.db.connect map="tmp_vogb_epsg4326_$$" table="tmp_vogb_epsg4326_$$" --quiet
+if [ $? -ne 0 ] ; then
+    g.message -e "Error reconnecting temporary DB"
+    cleanup
+    exit 1
+fi
+
+
 # export as GPX using v.out.ogr
 if [ $TRK -eq 1 ] ; then
    LINETYPE="lco=FORCE_GPX_TRACK=YES"
@@ -276,8 +294,8 @@
 #   v.out.ogr -> shapefile -> GPX works, but we try to avoid that as it's
 #     lossy. Also that would allow ogr2ogr -a_srs $IN_PROJ -t_srs EPSG:4326
 #     so skip m.proj pains.. if that is done ogr2ogr -a_srs MUST HAVE +wktext
-#     with PROJ.4 terms or else the +nadgrids will be ignored! (best to feed
-#     it g.proj -wf) in that case.
+#     with PROJ.4 terms or else the +nadgrids will be ignored! best to feed
+#     it  IN_PROJ="`g.proj -jf` +wktext"  in that case.
 
 g.message -v "Exporting data ..."
 



More information about the grass-commit mailing list