Yes you can. The idea is the same you need to make a Filter and then call featureSource.getFeatures( Filter ); for more advanced options you can use featureSource.getFeatures( Query ). Have a look at the GeoTools 2.2 javadocs; and check out the test cases for good examples. - http://javadoc.geotools.fr/
We only started trying to make a user guide for GeoTools 2.5; before that there is very little documentation (other than javadocs and test cases). Jody On Wed, Jan 7, 2009 at 8:33 PM, Ailia Morejon <[email protected]> wrote: > hi, we\'re using the udig\'s 1.1 rc 14 version and we need to filter > some data from a postgres database. Right now we are having two > problems: the first one is that we only get to connect to a database > on the localhost(even doing it programmatically) and the second one is > that we only get to obtain the whole table but we actually need > something like a select sentence results instead whith all the variety > it includes. We have found some examples on internet, but all of them > seams to use an newer version of geotools. Could we do this with the > current version we have?? > > thanks a lot.. > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel >
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
