[Featureserver] newbie question - ogr datasource

alim karim alim.karim at gmail.com
Tue Jan 15 19:05:41 EST 2008


thanks for the reply chris.

actually querying for feature 0 works in the version i have. as long
as the error reporting is fixed, i am sure it will save a lot of
headaches in the future.

i cannot believe it was such a simple thing. i should have looked into
the indexing further. DUH!!

thanks again.



On Jan 15, 2008 3:48 PM, Christopher Schmidt <crschmidt at metacarta.com> wrote:
> 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