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: [email protected]
> To: [email protected]
> CC: [email protected]; [email protected]
> 
> On 5 June 2012 20:34, jérémy lacombe <[email protected]> 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
                                          
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to