[GRASS-SVN] r55694 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 10 13:57:57 PDT 2013
Author: martinl
Date: 2013-04-10 13:57:56 -0700 (Wed, 10 Apr 2013)
New Revision: 55694
Modified:
grass/trunk/lib/vector/Vlib/open_ogr.c
grass/trunk/lib/vector/Vlib/open_pg.c
Log:
vlib/ogr|pg: remove unused function
dox cosmetics
Modified: grass/trunk/lib/vector/Vlib/open_ogr.c
===================================================================
--- grass/trunk/lib/vector/Vlib/open_ogr.c 2013-04-10 20:37:27 UTC (rev 55693)
+++ grass/trunk/lib/vector/Vlib/open_ogr.c 2013-04-10 20:57:56 UTC (rev 55694)
@@ -26,8 +26,6 @@
#ifdef HAVE_OGR
#include <ogr_api.h>
-
-static int sqltype_to_ogrtype(int);
#endif
/*!
@@ -161,7 +159,8 @@
/*!
\brief Prepare OGR datasource for creating new OGR layer (level 1)
- New OGR layer is created by Vect__open_new_ogr().
+ New OGR layer is created when writing features by
+ Vect_wrile_line().
\param[out] Map pointer to Map_info structure
\param name name of OGR layer to create
@@ -317,32 +316,3 @@
return 0;
}
-
-#ifdef HAVE_OGR
-int sqltype_to_ogrtype(int sqltype)
-{
- int ctype, ogrtype;
-
- ctype = db_sqltype_to_Ctype(sqltype);
-
- switch(ctype) {
- case DB_C_TYPE_INT:
- ogrtype = OFTInteger;
- break;
- case DB_C_TYPE_DOUBLE:
- ogrtype = OFTReal;
- break;
- case DB_C_TYPE_STRING:
- ogrtype = OFTString;
- break;
- case DB_C_TYPE_DATETIME:
- ogrtype = OFTString;
- break;
- default:
- ogrtype = OFTString;
- break;
- }
-
- return ogrtype;
-}
-#endif
Modified: grass/trunk/lib/vector/Vlib/open_pg.c
===================================================================
--- grass/trunk/lib/vector/Vlib/open_pg.c 2013-04-10 20:37:27 UTC (rev 55693)
+++ grass/trunk/lib/vector/Vlib/open_pg.c 2013-04-10 20:57:56 UTC (rev 55694)
@@ -5,7 +5,7 @@
Higher level functions for reading/writing/manipulating vectors.
- (C) 2011-2012 by the GRASS Development Team
+ (C) 2011-2013 by the GRASS Development Team
This program is free software under the GNU General Public License
(>=v2). Read the file COPYING that comes with GRASS for details.
@@ -48,10 +48,9 @@
#endif
/*!
- \brief Open vector map - PostGIS feature table (level 1 - without topology)
+ \brief Open vector map - PostGIS feature table on non-topological
+ level
- \todo Check database instead of geometry_columns
-
\param[in,out] Map pointer to Map_info structure
\param update TRUE for write mode, otherwise read-only
@@ -144,8 +143,13 @@
}
/*!
- \brief Open vector map - PostGIS feature table (level 2 - feature index)
+ \brief Open vector map - PostGIS feature table on topological level
+ Simple feature access:
+ - open feature index file
+ PostGIS Topology:
+ - check if topological schema exists
+
\param[in,out] Map pointer to Map_info structure
\return 0 success
@@ -199,7 +203,8 @@
\brief Prepare PostGIS database for creating new feature table
(level 1)
- \todo To implement
+ New PostGIS table is created when writing features by
+ Vect_wrile_line().
\param[out] Map pointer to Map_info structure
\param name name of PostGIS feature table to create
More information about the grass-commit
mailing list