[Geoserver-users] getFeatureInfo request question

Hi,

I am building a new datastore, which presents aggregated features on the map. In hte meanwhile it works reasonable for getMap requests. However, if my datastore receives a getFeatureInfo request the BBox contained in the filter of the query corresponds to the area around the mouse pointer.

However, to be able to answer the request I need the information of the BBox of the map. I see this information in the geoserver log

GetMapRequest =
GetMap Request
  version: 1.1.1
  output format: image/png
  width height: 567,330
  bbox: ReferencedEnvelope[-0.160528 : 0.46738, 51.331311 : 51.69676]

but I have no idea on how to access this bbox information from a ContentFeatureSource in the getReaderInternal(Query) method.

Any suggestions are appreciated.

Thanks in advance.

best regards
Andreas

On Fri, Jul 5, 2013 at 4:49 PM, Andreas Wombacher <a.wombacher@anonymised.com>wrote:

Hi,

I am building a new datastore, which presents aggregated features on the
map. In hte meanwhile it works reasonable for getMap requests. However,
if my datastore receives a getFeatureInfo request the BBox contained in
the filter of the query corresponds to the area around the mouse pointer.

However, to be able to answer the request I need the information of the
BBox of the map. I see this information in the geoserver log

GetMapRequest =
GetMap Request
  version: 1.1.1
  output format: image/png
  width height: 567,330
  bbox: ReferencedEnvelope[-0.160528 : 0.46738, 51.331311 : 51.69676]

but I have no idea on how to access this bbox information from a
ContentFeatureSource in the getReaderInternal(Query) method.

Dispatcher.REQUEST.get() and then, if not null (in test enviroment it can
be),
check the kvp map, it has the parsed BBOX among the others

Can you share anything about that store? What does it do?
Is it going to be released as open source?

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,

yes it is already available on github
https://github.com/utwente-db/neogeo

but it is still pre-alpha as you can see on my questions.

The basic idea is that often if you want to visualize a lot of information in a GIS the layers get very slow. We suggest to have in addition to the layer providing the features for each individual object another layer where we present only aggregates. Thus, we put a grid over the map with a configurable amount of cells and we display e.g. the number of objects in a particular cell instead of all objects of that cell.
The idea is that the user can get this way an idea about the distribution of the data in the current view of the map and zoom in on the parts which are most interesting. Once the number of objects is sufficiently small you switch on the detailed layer on again to observe the objects.
Behind the datastore is an index we develop for aggregation queries, which I am now trying to connect to geoserver.

A small example of counts of tweets from London Haveringen is accessible as WFS at
http://silo2.ewi.utwente.nl:8080/geoserver/nurc/wms
Please be aware that the getFeatureInfo request is not working yet - apparently.

Further this is my development server, thus, there is a good chance it goes on and off on a regular basis. In a few weeks we will have a production server and some bigger dataset and more features, which i will share with you at the time.

Thanks a lot for your help.

best regards
Andreas

On 7/5/2013 5:06 PM, Andrea Aime wrote:

On Fri, Jul 5, 2013 at 4:49 PM, Andreas Wombacher
<a.wombacher@anonymised.com <mailto:a.wombacher@anonymised.com>> wrote:

    Hi,

    I am building a new datastore, which presents aggregated features on the
    map. In hte meanwhile it works reasonable for getMap requests. However,
    if my datastore receives a getFeatureInfo request the BBox contained in
    the filter of the query corresponds to the area around the mouse
    pointer.

    However, to be able to answer the request I need the information of the
    BBox of the map. I see this information in the geoserver log

    GetMapRequest =
    GetMap Request
       version: 1.1.1
       output format: image/png
       width height: 567,330
       bbox: ReferencedEnvelope[-0.160528 : 0.46738, 51.331311 : 51.69676]

    but I have no idea on how to access this bbox information from a
    ContentFeatureSource in the getReaderInternal(Query) method.

Dispatcher.REQUEST.get() and then, if not null (in test enviroment it
can be),
check the kvp map, it has the parsed BBOX among the others

Can you share anything about that store? What does it do?
Is it going to be released as open source?

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,

what I am actually doing is producing a raster of values for each GetMap request. Thus, there are no fixed levels for the raster and the raster is constructed dynamically rather than being based on images.

Might it be better to implement my datastore as a raster store?

best regards
Andreas

On 7/5/2013 5:18 PM, Andreas Wombacher wrote:

Hi,

yes it is already available on github
https://github.com/utwente-db/neogeo

but it is still pre-alpha as you can see on my questions.

The basic idea is that often if you want to visualize a lot of
information in a GIS the layers get very slow. We suggest to have in
addition to the layer providing the features for each individual object
another layer where we present only aggregates. Thus, we put a grid over
the map with a configurable amount of cells and we display e.g. the
number of objects in a particular cell instead of all objects of that cell.
The idea is that the user can get this way an idea about the
distribution of the data in the current view of the map and zoom in on
the parts which are most interesting. Once the number of objects is
sufficiently small you switch on the detailed layer on again to observe
the objects.
Behind the datastore is an index we develop for aggregation queries,
which I am now trying to connect to geoserver.

A small example of counts of tweets from London Haveringen is accessible
as WFS at
http://silo2.ewi.utwente.nl:8080/geoserver/nurc/wms
Please be aware that the getFeatureInfo request is not working yet -
apparently.

Further this is my development server, thus, there is a good chance it
goes on and off on a regular basis. In a few weeks we will have a
production server and some bigger dataset and more features, which i
will share with you at the time.

Thanks a lot for your help.

best regards
Andreas

On 7/5/2013 5:06 PM, Andrea Aime wrote:

On Fri, Jul 5, 2013 at 4:49 PM, Andreas Wombacher
<a.wombacher@anonymised.com <mailto:a.wombacher@anonymised.com>> wrote:

     Hi,

     I am building a new datastore, which presents aggregated features on the
     map. In hte meanwhile it works reasonable for getMap requests. However,
     if my datastore receives a getFeatureInfo request the BBox contained in
     the filter of the query corresponds to the area around the mouse
     pointer.

     However, to be able to answer the request I need the information of the
     BBox of the map. I see this information in the geoserver log

     GetMapRequest =
     GetMap Request
        version: 1.1.1
        output format: image/png
        width height: 567,330
        bbox: ReferencedEnvelope[-0.160528 : 0.46738, 51.331311 : 51.69676]

     but I have no idea on how to access this bbox information from a
     ContentFeatureSource in the getReaderInternal(Query) method.

Dispatcher.REQUEST.get() and then, if not null (in test enviroment it
can be),
check the kvp map, it has the parsed BBOX among the others

Can you share anything about that store? What does it do?
Is it going to be released as open source?

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

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

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users