Update of /cvsroot/playerstage/code/player/server/drivers/vectormap
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9644/server/drivers/vectormap

Modified Files:
        postgis.cc 
Log Message:
applied [ 1887730 ] Player 2.1.0rc1: Fixed postgis.cc comments and Publish calls


Index: postgis.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/server/drivers/vectormap/postgis.cc,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** postgis.cc  7 Dec 2007 04:31:45 -0000       1.7
--- postgis.cc  6 Feb 2008 18:46:03 -0000       1.8
***************
*** 67,70 ****
--- 67,72 ----
  driver
  (
+   name "postgis"
+   provides ["vectormap:0"]
    dbname "gis"
    host "192.168.0.2"
***************
*** 81,98 ****
  
  After the database has been installed, you will need to install the PL/pgSQL 
language extension and load the PostGIS definitions.
! - To do this do a 'sudo su' to the postgres user.
! - Change to the directory holding lwpostgis.sql (Should be 
'/usr/share/postgres-8.1-postgis/lwpostgis.sql')
! - Add the PL/pgSQL language extension: createlang plpgsql template1
! - Load the PostGIS definitions: psql -d template1 -f lwpostgis.sql
  - Create a database: createdb gis
! - Add a user account:
!     - psql gis
      - CREATE ROLE username WITH LOGIN CREATEDB CREATEROLE;
  - Create a table for your geometry data
!     - CREATE TABLE obstacles_geom(ID int4, NAME varchar(25))
  - Let the PostGIS extension know about your data
!     - SELECT AddGeometryColumn('public', 'obstacles_geom', 'geom', 423, 
'LINESTRING', 2)
  
! Each geometry column refers to one layer in the configuration file.
  
  For more information see http://postgis.refractions.net/
--- 83,102 ----
  
  After the database has been installed, you will need to install the PL/pgSQL 
language extension and load the PostGIS definitions.
! - To do this switch to a postgres user (for example do a 'su - postgres').
  - Create a database: createdb gis
! - Add the PL/pgSQL language extension: createlang plpgsql gis
! - Change to the directory holding lwpostgis.sql (For example 
'/usr/share/postgres-8.1-postgis/lwpostgis.sql')
! - Load the PostGIS definitions: psql -d gis -f lwpostgis.sql
! - Run psql command interpreter: psgl gis
! - (Optionally) Add a user account:
      - CREATE ROLE username WITH LOGIN CREATEDB CREATEROLE;
  - Create a table for your geometry data
!     - CREATE TABLE obstacles_geom(id int4 PRIMARY KEY, name varchar(25));
  - Let the PostGIS extension know about your data
!     - SELECT AddGeometryColumn('public', 'obstacles_geom', 'geom', 423, 
'LINESTRING', 2);
! - Add column for attributes:
!     - ALTER TABLE obstacles_geom ADD COLUMN attrib varchar(25);
  
! Create one database table per one layer in the configuration file.
  
  For more information see http://postgis.refractions.net/
***************
*** 303,307 ****
                    PLAYER_VECTORMAP_REQ_GET_MAP_INFO,
                    (void*)response,
!                   sizeof(player_vectormap_info_t),
                    NULL);
      return(0);
--- 307,311 ----
                    PLAYER_VECTORMAP_REQ_GET_MAP_INFO,
                    (void*)response,
!                   0,
                    NULL);
      return(0);
***************
*** 320,324 ****
                    PLAYER_VECTORMAP_REQ_GET_LAYER_DATA,
                    (void*)response,
!                   sizeof(player_vectormap_layer_data_t),
                    NULL);
  
--- 324,328 ----
                    PLAYER_VECTORMAP_REQ_GET_LAYER_DATA,
                    (void*)response,
!                   0,
                    NULL);
  
***************
*** 338,342 ****
                    PLAYER_VECTORMAP_REQ_WRITE_LAYER,
                    (void*)request,
!                    sizeof(player_vectormap_layer_data_t),
                    NULL);
      return(0);
--- 342,346 ----
                    PLAYER_VECTORMAP_REQ_WRITE_LAYER,
                    (void*)request,
!                   0,
                    NULL);
      return(0);


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to