Re: [Geotools-devel] Seeking for help on a sql encoding issue

2008-05-05 Thread Andrea Aime
Jody Garnett ha scritto: ... >> Now, SQLBuilder is public api, yet it's not that "public", in >> a sense that the SQLBuilder class was not meant to be user >> facing. Shall I roll a very quick proposal? > Gak; JDBCDataStore is not really public either this is kind of a border > line gray area ...

Re: [Geotools-devel] Seeking for help on a sql encoding issue

2008-05-05 Thread Jody Garnett
Andrea Aime wrote: > Soo, long story short, no, I'm not seeing anything we could reuse > on 2.4.x there. Soo, what do we do? Add the following to SQLBuilder > interface? > > interface SQLBuilder { > public String encode(Expression) > public String encode(Filter) > } Sounds good; if you look at

Re: [Geotools-devel] Seeking for help on a sql encoding issue

2008-05-05 Thread Andrea Aime
Jody Garnett ha scritto: > Andrea Aime wrote: >> What it would be nice to have is the ability, from within >> JDCBFeatureCollection, do so something like: >> mySqlBuilder.getEncoder().encode(expression) >> > I think we may need to make a full SQL builder available ie that can > handle: > - Sor

Re: [Geotools-devel] Seeking for help on a sql encoding issue

2008-05-05 Thread Andrea Aime
Jody Garnett ha scritto: > Andrea Aime wrote: >> What it would be nice to have is the ability, from within >> JDCBFeatureCollection, do so something like: >> mySqlBuilder.getEncoder().encode(expression) >> > I think we may need to make a full SQL builder available ie that can > handle: > - Sor

Re: [Geotools-devel] Seeking for help on a sql encoding issue

2008-05-05 Thread Jody Garnett
Andrea Aime wrote: > What it would be nice to have is the ability, from within > JDCBFeatureCollection, do so something like: > mySqlBuilder.getEncoder().encode(expression) > I think we may need to make a full SQL builder available ie that can handle: - SortBy - Expression - Filter - type name

[Geotools-devel] Seeking for help on a sql encoding issue

2008-05-05 Thread Andrea Aime
Hi, I'm having a hard time with this issue: http://jira.codehaus.org/browse/GEOT-1798 To sum up, I have a project that's using the GeoTools classification functions (the ones used to build thematic maps with intervals, quantiles and the like). Now, those functions are in turn using aggregate func