Hi,
 
I"ve little problems to draw a MultiPoint geometry, when I try to drawn
a MultiPoint geometry in my shapefile my program shows only one Point
geometry (in this case the last), Is there a problem in my source code?
 
Mark redCircle = sb.createMark(StyleBuilder.MARK_CIRCLE, Color.RED,
Color.BLACK, 0);
Graphic graphPoint = sb.createGraphic(null, redCircle, null);
  AttributeType geom = AttributeTypeFactory.newAttributeType("the_geom",
MultiPoint.class);
  FeatureType ftRoad = FeatureTypeFactory.newFeatureType(new
AttributeType[] {geom}, "road");
  PointSymbolizer psPoint = sb.createPointSymbolizer(graphPoint);
  Style stylePoint = sb.createStyle(psPoint);
 
  WKTReader wktReader = new WKTReader();
  MultiPoint geometry = (MultiPoint) wktReader.read("MULTIPOINT
(-45.90500 -23.23700,-45.92500 -23.23700, -45.92500 -23.24700)");
 
Feature theRoad = ftRoad.create(new Object[] {geometry}, "myRoad");
 
FeatureCollection fc = DefaultFeatureCollections.newCollection();
fc.add(theRoad);
MapLayer myLayer = new DefaultMapLayer(fc,stylePoint);
MapContext map = new DefaultMapContext();
map.addLayer(myLayer);
 
Victor Amano Izawa
FVE - IP&D
Phone.:(12)3947-1155