[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Filtering datas from a database
|
Jesse Eichar wrote:
On 19-Dec-08, at 11:32 AM, Jacques LESCOT wrote:
See my comments below,
Jesse Eichar a écrit :
Hi,
We need to rename the packages from internal to something less
frightening. When it comes to net.refractions.udig.project the
internal packages can be used but NOT the internal.impl packages.
The idea was to make people reluctant to use the internal classes
because most of the things should be done with Commands not direct.
Commands allow roll-back. Problem was that for setting up maps and
so on it is annoying to do it through commands.
Yes, I recognized here EMF behavior :-)
As for filtering features I would recommend trying to make use of the
view work.
In my case, I need to perform this programmatically.
It has a couple bugs but in general works. The way to do it is to
put a Filter on the styleblackboard with the key:
net.refractions.udig.project.ProjectBlackboardConstants.ProjectBlackboardConstants.LAYER__DATA_QUERY
You will probably think I am fastidious but I would prefer a solution
where filtering is done at a upper level : I mean instead of
retrieving all the datas from the database and then filtering them in
the map editor, I would like to filter things when requesting datas
from the database. As I said before, the database may contains lots of
records and thus it would be more judicious to limit records that are
sent back by the server. I am pretty sure solution is near (from what
I read from http://docs.codehaus.org/display/GEOTDOC/02+Filter) but I
would really need a little more help. :-)
Huh. I thought it created it did something so that only those features
that matched the Filter were retrieved. I haven't personally tested
this but that was my understanding. Have you verified that all features
are retrieved from the postgis? You are using Postgis right?
I think you're correct here, Jesse. The filtering is done at data store
level. Though I haven't written the code in our app, the colleague who
did told me it was so. (At least with our shapefiles. And that was udig
1.1, but I don't think that should matter.)
Cheers,
Ugo
------------------------------------------------------------------------
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
--
Ugo Taddei
Fraunhofer Institut Intelligente Analyse- und Informationssysteme (FhG IAIS)
http://www.iais.fraunhofer.de
Department Knowledge Discovery - IAIS.KD -
Working Group Spatial Decision Support
http://www.iais.fraunhofer.de/kd.html
phone (+49)2241-14-2184 fax (+49)2241-14-2072
Schloss Birlinghoven, D-53754 Sankt Augustin, Germany