[Featureserver] Bug : fid=0
Yves Moisan
yves.moisan at boreal-is.com
Fri Dec 12 16:35:18 EST 2008
Le vendredi 12 décembre 2008 à 16:01 -0500, Christopher Schmidt a
écrit :
> On Fri, Dec 12, 2008 at 03:56:46PM -0500, Yves Moisan wrote:
> > Hi All,
> >
> > I noticed a small bug.
> >
> > curl
> > http://example.com/featureserver.cgi/layer/0.json
> >
> > returns *all* records in my PostGIS table. I know it's probably bad
> > practice to have fid = [0 ...n] but the fact is that I have a row that
> > has an id of 0. I note that when all features are returned, I can see
> > the row that has an id of 0. I just can't get to it specifically (e.g.
> > calling the url above) like I can for all other features.
>
> Yep. Patches welcome. It's probably a case of "if request.id" instead of
> "if request.id != None" in the PostGIS code... but could be at the
> service level.
The reason why I posted is that I didn't find an obvious location where
to fix things in the code. I guess I'll throw in pdb.
Cheers,
Yves
More information about the Featureserver
mailing list