Hi Andrea,

Thanks for the response. If the returning is feature is 4, will the WPS
return 1 extent for all the 4 returning features instead of 4 individual
extents?

Thanks,
Farook

On Mon, Aug 1, 2016 at 11:19 PM, Andrea Aime <[email protected]>
wrote:

> Hi Farook,
> no, WFS does not allow to just return the extent, without also returning
> the features (it's not like SQL where
> aggregations can be performed).
>
> However you can install and use WPS for that purpose, there is a process
> called Bounds that just
> returns the bounds without loading all the features
>
> Cheers
> Andrea
>
>
> On Mon, Aug 1, 2016 at 1:59 PM, Farook M <[email protected]> wrote:
>
>> I have data in the GeoServer coming from Microsoft's SQL server. I want
>> to use CQL filter with WMS to query and get 4000k records as a result. I
>> need to know is there any way my CQl filter with WMS can return extent for
>> the 4k records in the resultant response?If the result is 2k records, then
>> it should return the extent for those.For ex,
>>
>> http://localhost:8080/geoserver/wfs?service=wfs&version=1.1.0&request=getfeature&typename=topp:states&CQL_FILTER=STATE_NAME=%27Idaho%27&resulttype=hits
>>
>> returns 1 record as below in XML
>>
>> <wfs:FeatureCollection xmlns:it.geosolutions="http://www.geo-solutions.it";   
>>  xmlns:cite="http://www.opengeospatial.net/cite"; 
>> xmlns:ogc="http://www.opengis.net/ogc"; xmlns:tiger="http://www.census.gov"; 
>> xmlns:sde="http://geoserver.sf.net"; 
>> xmlns:topp="http://www.openplans.org/topp"; 
>> xmlns:wfs="http://www.opengis.net/wfs"; 
>> xmlns:ows="http://www.opengis.net/ows"; 
>> xmlns:xlink="http://www.w3.org/1999/xlink"; 
>> xmlns:KFRI="http://www.kfri.res.in/"; 
>> xmlns:sf="http://www.openplans.org/spearfish"; 
>> xmlns:gml="http://www.opengis.net/gml"; xmlns:nurc="http://www.nurc.nato.int"; 
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; numberOfFeatures="1" 
>> timeStamp="2016-08-01T11:45:42.443Z" 
>> xsi:schemaLocation="http://www.opengis.net/wfs 
>> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"/>
>>
>> In addition,i need the extent also for the feature in the response. And
>> please note that if the response returns 4 features also it should return
>> one extent for all those 4 features instead of returning extent for each
>> feature.
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>
>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054  Massarosa (LU)
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility  for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to