On Tue, Sep 13, 2011 at 7:43 AM, Harshad S <[email protected]> wrote:

> Hello all,
>
>        I am new to Geoserver. I require spatial queries(to PostGIS)  to be
> run from the Geoserver web interface itself.  Does it have an extension for
> doing this or it's inbuilt into Geoserver. I am using the Geoserver version
> 2.1- Snapshot.
>

You mean, any sql query, interactively? That's not possible, it would be a
wide open door to a SQL injection attack.
An administrator can configure a parametric query as a source for a new
layer though, being very careful about
parameter validation to avoid attacks:

http://docs.geoserver.org/latest/en/user/data/sqlview.html

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to