changed from gid to ogc_fid (is it standard?)

This commit is contained in:
Artem Pavlenko 2006-03-31 08:54:20 +00:00
parent b7e96d387b
commit f97b552eda

View file

@ -189,7 +189,7 @@ featureset_ptr postgis_datasource::features(const query& q) const
PoolGuard<shared_ptr<Connection>,shared_ptr<Pool<Connection,ConnectionCreator> > > guard(conn,pool); PoolGuard<shared_ptr<Connection>,shared_ptr<Pool<Connection,ConnectionCreator> > > guard(conn,pool);
std::ostringstream s; std::ostringstream s;
// can we rely on 'gid' name??? // can we rely on 'gid' name???
s << "select gid,asbinary("<<geometryColumn_<<") as geom"; s << "select ogc_fid,asbinary("<<geometryColumn_<<") as geom";
std::set<std::string> const& props=q.property_names(); std::set<std::string> const& props=q.property_names();
std::set<std::string>::const_iterator pos=props.begin(); std::set<std::string>::const_iterator pos=props.begin();
while (pos!=props.end()) while (pos!=props.end())