On Thu, Aug 21, 2014 at 2:27 PM, Alireza Shamakhy <
alireza.shama...@gmail.com> wrote:

> So I can only sort based on the existing fields not alias fields.
> The problem is in Geotools when you connect to postgis database you can
> not have alias field as well. look at following:
>

I believe the only way to do what you want is to create a custom
VirtualTable that has
the sql you need, defining "field2 - 10" as a new column.
Not sure we have good tutorials on that, but you can look at some of the
GeoServer
user docs to get a grip on the concepts

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to