From: jérémy l. <pt...@ho...> - 2012-06-06 09:15:33
|
Problem solved i use bigjar a extension of eclipse and its perfect for geotools ^^ Last problem i have , the selection of the feature around the selected feature is different if i do a zoom or not ... and i want the same result when i have the shape on full screen all the time : the problem is here, i tried some things but not better , an idea ??? AffineTransform screenToWorld = mapFrame.getMapPane().getScreenToWorldTransform(); Rectangle2D worldRect = screenToWorld.createTransformedShape(screenRect).getBounds2D(); ReferencedEnvelope bbox = new ReferencedEnvelope( worldRect, mapFrame.getMapContent().getCoordinateReferenceSystem()); /* * Create a Filter to select features that intersect with * the bounding box */ // Premier Filtre pour le rectangle Filter filter = ff.bbox(ff.property(geometryAttributeName), bbox); Best Regards !!!! > Date: Wed, 6 Jun 2012 08:47:13 +1000 > Subject: Re: [Geotools-gt2-users] Geologie France > From: mic...@gm... > To: pt...@ho... > CC: jod...@gm...; geo...@li... > > On 5 June 2012 20:34, jérémy lacombe <pt...@ho...> wrote: > > I finished my application, but now when i .jar it, i hve the main frame but > > the loading of the shapefile didn't work. > > > > That's why i think the error which don't disturbed me on Eclipse, is now the > > problem : > > > > juin 05, 2012 12:29:12 PM > > org.geotools.filter.function.DefaultFunctionFactory loadFunctions > > Avertissement: Function in10 clash between FilterFunction_in8 and > > FilterFunction_in10 > > juin 05, 2012 12:29:12 PM > > org.geotools.filter.function.DefaultFunctionFactory loadFunctions > > Avertissement: Function area clash between AreaFunction and > > FilterFunction_area > > juin 05, 2012 12:29:12 PM > > org.geotools.filter.function.DefaultFunctionFactory loadFunctions > > Avertissement: Function in10 clash between FilterFunction_in10 and > > FilterFunction_in9 > > > > Those are not errors, they are just warning messages and will not be > related to your shapefile problem. > > Did you follow the methods set out in the GeoTools FAQ to create your jar ? > http://docs.geotools.org/latest/userguide/faq.html#how-do-i-create-an-executable-jar-for-my-geotools-app > > Michael |