[Featureserver] Bug : fid=0

Christopher Schmidt crschmidt at metacarta.com
Fri Dec 12 16:01:25 EST 2008


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.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Featureserver mailing list