[TinyOWS-users] InvalidParameterValue

Gissur Þórhallsson gissur at loftmyndir.is
Tue Oct 12 06:17:06 EST 2010


If you append outputFormat=JSON (like
so<http://188.64.1.61/cgi-bin/tinyows?service=wfs&version=1.0.0&request=getfeature&typename=tows:osm_polygon&maxfeatures=1&outputFormat=JSON>)
to that request, you'll see that there is no fid returned.

So the problem seems to be that the JSON outputFormat does not generate a
fid, making futher transactions using the response invalid.

I'm guessing this is not expected behaviour - should I file a ticket?

Kind regards,
Gissur

2010/10/4 Gissur Þórhallsson <gissur at loftmyndir.is>

> Okay, I have narrowed this down.
>
> The problem seems to arise when I use JSON as an output format instead of
> XML against OpenLayers
>
> If I use JSON I don't get any fids from tinyOWS - but if I switch over to
> XML they are allocated normally.
>
> Is this a bug or am I doing it wrong?
>
> Kind regards,
> Gissur
>
>
> On Tue, Sep 28, 2010 at 3:51 PM, Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi
> > wrote:
>
>> Hi,
>>
>> It works for me, see
>>
>> http://188.64.1.61/cgi-bin/tinyows?service=wfs&version=1.0.0&request=getfeature&typename=tows:osm_polygon&maxfeatures=1
>>
>> I have primary key in myid column and TinyOWS is using it for fid
>> (<tows:osm_polygon fid="osm_polygon.1">)
>>
>> -Jukka-
>>
>>
>> -----Alkuperäinen viesti-----
>> Lähettäjä: tinyows-users-bounces at lists.maptools.org puolesta: Gissur
>> Þórhallsson
>> Lähetetty: ti 28.9.2010 18:15
>> Vastaanottaja: TinyOWS users discuss list
>> Aihe: Re: [TinyOWS-users] InvalidParameterValue
>>
>> No, this is not the problem - since I have a primary key (called gid)
>>
>> The fid is WFS specific and is generated on the fly by the WFS service
>> when
>> you get the features originally.
>>
>> I'm just at a loss at to why I'm not getting fid's from the service - the
>> tag in the xml is empty.
>>
>> On Tue, Sep 28, 2010 at 1:07 PM, Rahkonen Jukka
>> <Jukka.Rahkonen at mmmtike.fi>wrote:
>>
>> >  Hi,
>> >
>> > I guess that you do not have primary key in your table.  If this is the
>> > case, create it
>> >
>> > ALTER TABLE my_table add myid serial;
>> >
>> > ALTER TABLE my_table ADD PRIMARY KEY (myid);
>> >
>> > -Jukka Rahkonen-
>> >
>> >  ------------------------------
>> > *Lähettäjä:* tinyows-users-bounces at lists.maptools.org [mailto:
>> > tinyows-users-bounces at lists.maptools.org] *Puolesta *Gissur Þórhallsson
>> > *Lähetetty:* 28. syyskuuta 2010 13:48
>> >
>> > *Vastaanottaja:* TinyOWS users discuss list
>> > *Aihe:* Re: [TinyOWS-users] InvalidParameterValue
>> >
>> > Okay - got 0.9.0 running - and this is what the log outputs:
>> > http://tiny.pastebin.com/GbYyABpN
>> >
>> >  <http://tiny.pastebin.com/HKRYQJKa>tinyows doesn't give me any fids
>> when
>> > I request the features originally so I'm not sure what I'm doing wrong.
>> >
>> > On Mon, Sep 27, 2010 at 3:01 PM, Olivier Courtin <
>> > olivier.courtin at gmail.com> wrote:
>> >
>> >>
>> >> On Sep 27, 2010, at 4:58 PM, Gissur Þórhallsson wrote:
>> >>
>> >> > user at localhost:/$ opt/tinyows/bin/tinyows --version
>> >> > gives me this:
>> >> > 0.8.0 SVN
>> >> >
>> >> > Maybe I should upgrade and see whether that changes anything.
>> >>
>> >> Yes 0.8.0 didn't have log support
>> >>
>> >> --
>> >> Olivier
>> >> _______________________________________________
>> >> TinyOWS-users mailing list
>> >> TinyOWS-users at lists.maptools.org
>> >> http://lists.maptools.org/mailman/listinfo/tinyows-users
>> >>
>> >
>> >
>> >
>> > --
>> > Gissur Þórhallsson
>> >
>> > Loftmyndir ehf.
>> > Laugavegur 13
>> > IS 101 Reykjavík - Iceland
>> > sími (tel): (+354) 540 2500
>> > tölvupóstur (email): gissur at loftmyndir.is
>> >
>> >
>> > _______________________________________________
>> > TinyOWS-users mailing list
>> > TinyOWS-users at lists.maptools.org
>> > http://lists.maptools.org/mailman/listinfo/tinyows-users
>> >
>> >
>>
>>
>> --
>> Gissur Þórhallsson
>>
>> Loftmyndir ehf.
>> Laugavegur 13
>> IS 101 Reykjavík - Iceland
>> sími (tel): (+354) 540 2500
>> tölvupóstur (email): gissur at loftmyndir.is
>>
>> _______________________________________________
>> TinyOWS-users mailing list
>> TinyOWS-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/tinyows-users
>>
>
>
>
> --
> Gissur Þórhallsson
>
> Loftmyndir ehf.
> Laugavegur 13
> IS 101 Reykjavík - Iceland
> sími (tel): (+354) 540 2500
> tölvupóstur (email): gissur at loftmyndir.is
>



-- 
Gissur Þórhallsson

Loftmyndir ehf.
Laugavegur 13
IS 101 Reykjavík - Iceland
sími (tel): (+354) 540 2500
tölvupóstur (email): gissur at loftmyndir.is
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/tinyows-users/attachments/20101012/b9873d5c/attachment.htm 


More information about the TinyOWS-users mailing list