changed from gid to ogc_fid (is it standard?)
This commit is contained in:
parent
b7e96d387b
commit
f97b552eda
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue