GeoTools 2.0 problem with LINE_CAP_ROUND

C

cc

Hi,
I want set geometry property in StyleBuilder.createLineSymbolizer() method
with this java code:

StyleBuilder builder = new StyleBuilder();
LineSymbolizer ls1 = builder.createLineSymbolizer(Color.BLACK, 10,
StyleBuilder.LINE_CAP_ROUND);
Style style= builder.createStyle();
style.addFeatureTypeStyle(builder.createFeatureTypeStyle(null,
builder.createRule(ls1)));

bat this not work.

You can help me?

Carlo
 
T

Thomas Fritsch

cc said:
Hi,
I want set geometry property in StyleBuilder.createLineSymbolizer() method
with this java code:

StyleBuilder builder = new StyleBuilder();
LineSymbolizer ls1 = builder.createLineSymbolizer(Color.BLACK, 10,
StyleBuilder.LINE_CAP_ROUND);
Style style= builder.createStyle();
style.addFeatureTypeStyle(builder.createFeatureTypeStyle(null,
builder.createRule(ls1)));

bat this not work.

Exactly how does it not work?

Is it not compilable? If so, what compiler error do you get, and where?
Throws it an exception? If so, what exception do you get, and where?
Does it work, but in another way as you expected? If so, what did you
get, and how differs it from what you expected?

I don't want to be rude, but also see
http://mindprod.com/jgloss/newsgroups.html#LUTUS
You can help me?

Carlo
Regards
Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top