Hi

Since i switched from GT2.6-M2 to trunc i get a strange error. When i run the 
attached class, i get

>Exception in thread "main" java.lang.NoSuchMethodError:
> org.geotools.styling.Stroke.setGraphicFill(Lorg/opengis/style/Graphic;)V at
> org.geotools.styling.StyleFactoryImpl.createStroke(StyleFactoryImpl.java:32
>1) at
> org.geotools.styling.StyleFactoryImpl.createStroke(StyleFactoryImpl.java:26
>1) at
> org.geotools.styling.StyleFactoryImpl.createStroke(StyleFactoryImpl.java:24
>4) at Test.main(Test.java:34)

I have the Gt trunk projects in my build path... Any ideas? 
I have tried to updated from svn and cleaned all projects. No change.
Can it be reproduced? 

Thanks,
Steve


-- 
wiki² - Softwareentwicklung
Stefan Krüger
Straßburger Weg 26
53113 Bonn

email   krue...@wikisquare.de
mobile  0151 50543949   
webpage wikisquare.de
skype   alfonx

reclaim your net - http://tor.eff.org
enforce privacy - http://www.pgpi.org
pgp key id: 51B576FD - http://pgp.mit.edu

Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.


import java.awt.Color;

import org.geotools.factory.CommonFactoryFinder;
import org.geotools.factory.GeoTools;
import org.geotools.styling.Stroke;
import org.geotools.styling.StyleBuilder;
import org.geotools.styling.StyleFactory;
import org.opengis.filter.FilterFactory2;
import org.opengis.filter.expression.Expression;
import org.opengis.filter.expression.Literal;

import schmitzm.geotools.feature.FeatureUtil;

public class Test {

	public static final FilterFactory2 FILTER_FACTORY2 = CommonFactoryFinder
			.getFilterFactory2(GeoTools.getDefaultHints());

	public static final StyleFactory styleFactory = CommonFactoryFinder
			.getStyleFactory(GeoTools.getDefaultHints());

	public static void main(String[] args) {
		StyleBuilder styleBuilder = new StyleBuilder();

		Expression colorEx = styleBuilder.colorExpression(Color.YELLOW
				.brighter());

		Literal literal4 = FILTER_FACTORY2.literal(4);
		Literal literal1 = FeatureUtil.FILTER_FACTORY2.literal(1.);
		Literal literalRound = FeatureUtil.FILTER_FACTORY.literal("round");
		Literal literalROund = FILTER_FACTORY2.literal("round");
		Literal literal0 = FILTER_FACTORY2.literal(0);

		Stroke stroke1 = styleFactory.createStroke(colorEx, literal4);
		Stroke stroke2 = styleFactory.createStroke(colorEx, literal4, literal1, literalRound, literalROund, new float[0], literal0,
				null, null);
		
	}
}

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to