protected OMGraphic createPolygon(MysqlPolygon myPoly){
  Vector v=myPoly.getRings();
  int size=v.size();
  OMGraphic ret=null;
  OMPoly ompoly=null;
  OMGraphicList subList=null;
  if (size > 1) {
    subList=new OMGraphicList();
    ret=subList;
  }
  for (int i=0; i < size; i++) {
    ompoly=new OMPoly((double[])v.elementAt(i),OMGraphic.DECIMAL_DEGREES,OMGraphic.LINETYPE_STRAIGHT);
    drawingAttributes.setTo(ompoly);
    if (subList != null) {
      subList.add(ompoly);
    }
 else {
      ret=ompoly;
    }
  }
  return ret;
}

protected OMGraphic createPolygon ( MysqlPolygon myPoly ) { Vector v = myPoly . getRings ( ) ; int size = v . size ( ) ; OMGraphic ret = null ; OMPoly ompoly = null ; OMGraphicList subList = null ; if ( size > 1 ) { subList = new OMGraphicList ( ) ; ret = subList ; } for ( int i = 0 ; i < size ; i ++ ) { ompoly = new OMPoly ( ( double [ ] ) v . elementAt ( i ) , OMGraphic . DECIMAL_DEGREES , OMGraphic . LINETYPE_STRAIGHT ) ; drawingAttributes . setTo ( ompoly ) ; if ( subList != null ) { subList . add ( ompoly ) ; } else { ret = ompoly ; } } return ret ; }
method createpolygon . renders a polygon geometry
