hmm, i thought the xml defines every style and depending on which
feature to render, it takes either the line, the point or whatever
symbolizer.
Now it makes sense to me: Every single symbolizer has it's own
XML-Definition :)
but this also works: interestingly it renders about 7-8% faster with the
style builder definition...
StyleBuilder sb = new StyleBuilder();
LineSymbolizer ls2 = sb.createLineSymbolizer(Color.BLACK, 1);
Style roadsStyle = sb.createStyle(ls2);
Mark redCircle =
sb.createMark(StyleBuilder.MARK_CIRCLE, Color.RED, Color.BLACK, 0);
Graphic grGZ = sb.createGraphic(null, redCircle, null);
PointSymbolizer psGZ = sb.createPointSymbolizer(grGZ);
Style GZStyle = sb.createStyle(psGZ);
context.addLayer
(new ShapefileDataStore
(new File
("/home/Kastna/workspace/total_neich/Grundstücke.SHP").toURI ().toURL ())
.getFeatureSource (),roadsStyle);
context.addLayer
(new ShapefileDataStore
(new File
("/home/Kastna/workspace/applet02/gzpunkte.shp").toURI ().toURL ())
.getFeatureSource (),GZStyle);
[EMAIL PROTECTED] wrote:
Try putting the 2 symbolizers in the same rule.
I'm not quite sure what you're trying to do - you will be taking each
feature and rendering them twice -- once as a line (points should be
converted to a very small line) and once as a point (the centroid of
each line will be calculated).
What is your stylebuilder code?
dave
----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users