Changeset 769

Show
Ignore:
Timestamp:
11/19/08 16:26:20 (21 months ago)
Author:
artem
Message:

+ applied patch from rcoup to allow specify geometry column.

(TODO: update load_map to handle geometry_field)

Location:
trunk/plugins/input/postgis
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/input/postgis/postgis.cpp

    r624 r769  
    5858   : datasource (params), 
    5959     table_(*params.get<std::string>("table","")), 
     60     geometry_field_(*params.get<std::string>("geometry_field","")), 
    6061     type_(datasource::Vector), 
    6162     extent_initialized_(false), 
     
    125126         s << "select f_geometry_column,srid,type from "; 
    126127         s << GEOMETRY_COLUMNS <<" where f_table_name='" << table_name<<"'"; 
     128         if (geometry_field_.length() > 0) 
     129            s << " and f_geometry_column = '" << geometry_field_ << "'"; 
    127130             
    128131         shared_ptr<ResultSet> rs=conn->executeQuery(s.str()); 
  • trunk/plugins/input/postgis/postgis.hpp

    r557 r769  
    5656      const std::string password_; 
    5757      const std::string table_; 
     58      const std::string geometry_field_; 
    5859      std::string geometryColumn_; 
    5960      int type_;