Ooops, forgot the reply-to all. Sorry Michael the the double mail ---- I didn't implement my own FeatureSource class I retrieve the FeatureSource with the following line :
FeatureSouce<SimpleFeatureType, SimpleFeature> featureSource = MyDataStore. getFeatureSource(featureTypeName); But the getFeatureSource method is implemented in the AbstractDataStore class that MyDataStore extends. I followed the DataStore developper guide which didn't mention this method (http://docs.codehaus.org/display/GEOTDOC/DataStore+Developers+Guide ) Should I overwrite it ? Is there a working example somewhere ? Thanks Ben Le 2 déc. 08 à 23:45, Michael Bedward a écrit : > Hi Benoît, > > As I understand it, the getLayerBounds method just delegates the query > to your feature source which should implement the getBounds method. > Is there a problem there ? > > Michael > > 2008/12/3 Benoît Thiébault <[EMAIL PROTECTED]>: >> ), but I get a null pointer exception when trying to access >> map.getLayerBounds(). >> The only layer of my map is build like this : >> map.addLayer(featureSource, style). >> >> It's true I never explicitely defined the layer boundaries... >> > Benoît Thiébault Société Artenum 24 rue Louis Blanc, 75010 Paris tel: +33 (0)1 46 94 67 54 Artenum - Science & Groupware - http://www.artenum.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
