[Featureserver] newbie question - ogr datasource

Christopher Schmidt crschmidt at metacarta.com
Tue Jan 15 18:48:35 EST 2008


On Tue, Jan 15, 2008 at 03:26:41PM -0800, alim karim wrote:
> thanks for the response chris.
> 
> i haven't had much experience with python, but i can certainly give it
> a shot if thats what it takes.
> 
> i am attaching the shapefile to this email. note that i've tried
> different shapefiles without any success.

This shapefile has only one feature. 1.json will try to return the
second feature in the file (which doesn't exist). Needs better error
checking: Added in r422. The first feature in an OGR layer will be
'0.json' -- however, that's likely to fail because '0' equates to "False",
so the "are you querying by id" check fails. Fixed in r423. So you
should be able to load '0.json'. Tested: works here. Check out HEAD and
give it a shot?

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Featureserver mailing list