Hi,
I use the 2.3.3 version, as it's recommended in the geotools website.
But I have resolved the problem. In fact the selection of the LineSymbolizer
not worked because of the filter used (in the JMapPane) : it search the
point click mouse CONTAINS a geometry. It couldn't work because the
lineSymbolizer is to small (series of points) to have the click right in the
line. So I have done a distance filter which look a litlle around the mouse
click.
I put it here if someone has the same problem
[code]
public static Filter polygonIntersectPoint(FeatureSource source, double x,
double y){
                // create a filter
                FilterFactory filterFactory = 
FilterFactoryFinder.createFilterFactory();

                // look up geometry attribute name used for testing
                //
                String geometryName = 
source.getSchema().getDefaultGeometry().getName();

                // Create the attribute expression
                AttributeExpression geometryExpression =
filterFactory.createAttributeExpression(geometryName);
                
                // Create the point used
                Coordinate pointCoordinate = new Coordinate(x,y);
                GeometryFactory geometryFactory = new GeometryFactory();
                com.vividsolutions.jts.geom.Point pt =
geometryFactory.createPoint(pointCoordinate);
                
                // Create the literal expression
                LiteralExpression pointExpression =
filterFactory.createLiteralExpression();
                pointExpression.setLiteral(pt);

                // create the actual test
                //
                GeometryDistanceFilter filter =
filterFactory.createGeometryDistanceFilter(Filter.GEOMETRY_DWITHIN);
                filter.setDistance(5);
                filter.addLeftGeometry(geometryExpression);
                filter.addRightGeometry(pointExpression);

                return filter;

        }
[/code]

Manu



Ian Turton wrote:
> 
> On 10/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Hi,
>> I have another problem. I try to use the Select tool to select different
>> feature according the layer selected. When I select a polygonSymbolizer
>> it work great and my feature selected change of color. But when i wanted
>> to select a LineSymbolizer, the tool works but the changement of color
>> (for the user) not.
>> If someone knows why???
> 
> I think this is fixed on trunk, if that is the version you are using
> then something is broken so please file a jira report and I'll take a
> look an try to see what broke during the great code sprint.
> 
> Ian
> -- 
> 
> Ian Turton
> http://www.geotools.org
> http://pennspace.blogspot.com/
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-the-Select-Tool-to-select-a-LineSymbolizer-tf4710549.html#a13484485
Sent from the geotools-gt2-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to