[Geoserver-users] new datastore for geoserver

Hi,

I am new with geoserver and geotools and I try to set up a new Datastore. This datastore has to interpret queries which may contain bbox, time and viewparams.
I manage to retrieve the filter of the query and either see time or bbox, but not both for a regular getMap request. I see all parameters in the geoserver log in the KVP parameters, but I can not find them back in the query.
My datastore extends ContentDataStore.

Any suggestions on whether I have to set hints or capabilities?
Or which parts of the query may contain the missing information?
Is there a possibility to directly access the KVP parameters via the query when creating the Reader via
protected FeatureReader<SimpleFeatureType, SimpleFeature> getReaderInternal(Query query)

Any suggestions are welcome.

best regards
Andreas

On Thu, Jun 27, 2013 at 2:12 PM, Andreas Wombacher
<a.wombacher@anonymised.com>wrote:

Hi,

I am new with geoserver and geotools and I try to set up a new
Datastore. This datastore has to interpret queries which may contain
bbox, time and viewparams.
I manage to retrieve the filter of the query and either see time or
bbox, but not both for a regular getMap request. I see all parameters in
the geoserver log in the KVP parameters, but I can not find them back in
the query.
My datastore extends ContentDataStore.

The bbox is going to be part of the Query, the viewparams are in the query
hints,
the time will be sent down as part of the Filter is you activated the time
dimension in the layer config

You should not need to setup any particular capability, but of course your
feature source should declare that it can do filtering (canFilter() should
return true)

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Hi Andrea,

thanks that helped a lot!

best regards
Andreas

On 6/27/2013 4:11 PM, Andrea Aime wrote:

On Thu, Jun 27, 2013 at 2:12 PM, Andreas Wombacher
<a.wombacher@anonymised.com <mailto:a.wombacher@anonymised.com>> wrote:

    Hi,

    I am new with geoserver and geotools and I try to set up a new
    Datastore. This datastore has to interpret queries which may contain
    bbox, time and viewparams.
    I manage to retrieve the filter of the query and either see time or
    bbox, but not both for a regular getMap request. I see all parameters in
    the geoserver log in the KVP parameters, but I can not find them back in
    the query.
    My datastore extends ContentDataStore.

The bbox is going to be part of the Query, the viewparams are in the
query hints,
the time will be sent down as part of the Filter is you activated the time
dimension in the layer config

You should not need to setup any particular capability, but of course your
feature source should declare that it can do filtering (canFilter()
should return true)

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------