GetFeatureInfo in GeoServer

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

GetFeatureInfo in GeoServer

Cristoforo Abbattista
In questi giorni stiamo sfruculiando intorno alle perfomance di geoserver nelle sue varie attività.

Ci siamo imbattuti nella funzionalità del getfeatureinfo del wms che funziona (secondo noi) in modo tale da abbattere qualsiasi velleità sulle perfomance.

Ossia, ogni volta che si fa un getfeatureinfo, inoltra una query al geodb (in questo caso PostGIS) che ritorna non solo le info, ma anche tutta la geometria. E noi abbiamo anche singole geometrie di vari Mbyte.

E questo solo per restituire all'utente, nemmeno sempre, il numero di punti da cui è composta la feature.

La cosa avrebbe maggior senso (anche se meriterebbe una riflessione) nel caso in cui il valore di info_format fosse GML. Infatti così facendo geoserver restituisce anche la parte geometrica della feature all'utente.

In verità non è chiaro se il problema è geoserver o geotools.

E' possibile che sia una feature da migliorare o è giusto che funzioni così?

Vi allego il log di geoserver (in seguito ad una richiesta di getfeatureinfo) per capire meglio il problema

-------------------------------------------------------------------------------------
2011-10-14 15:01:24,057 DEBUG [geoserver.filters] - filtering http://localhost:81/geoserver/wms
2011-10-14 15:01:24,059 DEBUG [geoserver.ows] - Getting layers and styles from LAYERS and STYLES
2011-10-14 15:01:24,059 DEBUG [geotools.styling] - number of fts set 1
2011-10-14 15:01:24,059 DEBUG [geoserver.ows] - establishing poi style for topp:GEOM_TABLE
2011-10-14 15:01:24,059 DEBUG [geoserver.ows] - Getting layers and styles from LAYERS and STYLES
2011-10-14 15:01:24,059 DEBUG [geotools.styling] - number of fts set 1
2011-10-14 15:01:24,059 DEBUG [geoserver.ows] - establishing poi style for topp:
GEOM_TABLE
2011-10-14 15:01:24,060 TRACE [wms.responses] - ENTRY org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@8196ff73
2011-10-14 15:01:24,060 DEBUG [wms.responses] - request format is application/vnd.ogc.gml
2011-10-14 15:01:24,060 DEBUG [wms.responses] - found GetFeatureInfoDelegate class org.vfny.geoserver.wms.responses.featureInfo.GmlFeatureInfoResponse
2011-10-14 15:01:24,061 DEBUG [geotools.styling] - number of fts set 1
2011-10-14 15:01:24,062 DEBUG [wms.responses] - asking delegate for write to org.geoserver.ows.DispatcherOutputStream@5d3635
2011-10-14 15:01:24,063 DEBUG [geotools.jdbc] - CREATE CONNECTION
2011-10-14 15:01:24,065 TRACE [geotools.core] - ENTRY 7
2011-10-14 15:01:24,065 DEBUG [geotools.filter] - exporting PropertyName
2011-10-14 15:01:24,065 DEBUG [geotools.filter] - exporting LiteralExpression
2011-10-14 15:01:24,065 DEBUG [geotools.filter] - exporting PropertyName
2011-10-14 15:01:24,065 DEBUG [geotools.filter] - exporting LiteralExpression
2011-10-14 15:01:24,065 DEBUG [geotools.jdbc] - SELECT "gid","system","body","feature_na","latitude","longitude","starting_l","ending_lat","starting_1","ending_lon","projection","diameter",
"continent","ethnicity","quad","map","approval_s","approval_d","reference","feature_ty","origin",encode(asBinary(force_2d("the_geom"),'XDR'),'base64') as "the_geom"
FROM "public"."GEOM_TABLE"
WHERE "the_geom" && GeomFromText('POLYGON ((238.86792452830187 33.396226266666666, 240.64690026954176 33.396226266666666, 240.64690026954176 31.61725053333333, 238.86792452830187 31.61725053333333, 238.86792452830187 33.396226266666666))', 4326) AND intersects("the_geom", GeomFromText('POLYGON ((238.86792452830187 33.396226266666666, 240.64690026954176 33.396226266666666, 240.64690026954176 31.61725053333333, 238.86792452830187 31.61725053333333, 238.86792452830187 33.396226266666666))', 4326)) LIMIT 10

2011-10-14 15:01:24,087 TRACE [gml.producer] - ENTRY POINT (239.9 32.21)
2011-10-14 15:01:24,087 TRACE [gml.producer] - RETURN Point
2011-10-14 15:01:24,087 DEBUG [geotools.gml] - closing reader org.geotools.data.store.ContentFeatureCollection$WrappingFeatureIterator@87eaaa
2011-10-14 15:01:24,088 DEBUG [geotools.jdbc] - CLOSE CONNECTION



_______________________________________________
Iscriviti all'associazione GFOSS.it: http://www.gfoss.it/drupal/iscrizione
[hidden email]
http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss
Questa e' una lista di discussione pubblica aperta a tutti.
Non inviate messaggi commerciali.
I messaggi di questa lista non rispecchiano necessariamente
le posizioni dell'Associazione GFOSS.it.
527 iscritti al 7.7.2011